Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel3
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Within Jira you can use different priorities to classify your issues.

In the following use case we explain how to set the assignee based on the selected priority.


Configuration

UI Steps


UI Step

Add the Update field based on rules to the desired transition or create a new transition.

UI Text Box
typetip

You can add the post function to the create transition of the workflow so that the assignee get's automatically set every time an issue is created.



UI Step

Source field

Choose Priority


UI Step

Target field

Choose Assignee


UI Step

Rules

UI Steps


UI Step

First rule

UI Steps


UI Step

Select Text comparison


UI Step

Source field value

Enter the name of the priority, e.g.

Code Block
linenumberstrue
High



UI Step

Target field value

Enter the username that should be assigned to the ticket when the specified priority was selected:

Code Block
linenumberstrue
agrant


UI Text Box
typeinfo

In this case, the user with username agrant will be set as assignee, if the priority High was selected.





UI Step

Second rule

UI Steps


UI Step

Select Text comparison


UI Step

Source field value

Enter the name of the priority, e.g.

Code Block
linenumberstrue
Highest



UI Step

Target field value

Enter the username that should be assigned to the ticket when the specified priority was selected:

Code Block
linenumberstrue
eparis


UI Text Box
typeinfo

In this case, the user with username eparis will be set as assignee, if the priority Highest was selected.





UI Step


UI Text Box
typeinfo

Proceed with the configuration like shown in the previous steps and adapt the rules according to your needs.






UI Text Box
typenote

The current implementation works just fine, as long as priorities don't get renamed. If for e.g., the priority High is renamed to Urgent the above configured post function won't work correct anymore.

The following implementation is an alternative that even works after renaming priorities!


UI Expand
titleAlternative implementation using priority()


UI Text Box
typeinfo

Instead of entering the priority name itself, we will use the parser function priority() with the priority id.


UI Steps


UI Step

Head over to your Jira Administration → Issues → Priorities


UI Step

Hover over the Edit button of the desired priority and grab the id from the URL.


The URL might be something like:

Code Block
http://your-domain.com/secure/admin/EditPriority!default.jspa?id=1


UI Text Box
typeinfo

The id can be found at the end of the URL: id=1.

If the id of the priority Highest was 1, the expression would be:

Code Block
linenumberstrue
priority(1)




UI Step

Update the above rules like follows:

UI Steps


UI Step

First rule

UI Steps


UI Step

Select Logical expression


UI Step

Expression

Enter the the following expression:

Code Block
linenumberstrue
%{issue.priority} = priority(<id>)


UI Text Box
typeinfo

Replace <id> with the actual id of the desired priority.



UI Step

Target field value

Enter the username that should be assigned to the ticket when the specified priority was selected:

Code Block
linenumberstrue
agrant


UI Text Box
typeinfo

In this case, the user with username agrant will be set as assignee, if the priority High was selected.





UI Step

Second rule

UI Steps


UI Step

Select Logical expression


UI Step

Expression

Enter the following expression:

Code Block
linenumberstrue
%{issue.priority} = priority(<id>)


UI Text Box
typeinfo

Replace <id> with the actual id of the desired priority.



UI Step

Target field value

Enter the username that should be assigned to the ticket when the specified priority was selected:

Code Block
linenumberstrue
eparis


UI Text Box
typeinfo

In this case, the user with username eparis will be set as assignee, if the priority Highest was selected.










Screenshots


Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow" and ancestor = "32211223"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Update field based on rules

Parser functionspriority()
Label



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged