Is there a way to make it check if the assignee field matches the 'Staff Name' field (custom field) before transitioning from status to another status? If it matches then it will transition to another status, otherwise it will stay in the same status.
In Jira out of the box, it won't be possible. But it should be quite easy using any 3rd party Jira expression-based validator / condition (assuming you are using company managed project)
The expression will depend on the type of your custom field. If it is a User Picker, then it should be straightforward like
issue.assignee.accountId == issue.customfield_xxxxx.accountId
where xxxxx is the ID of the 'Staff Name' field
We've developed the Jira Expression Validator as part of the free Workflow Building Blocks for Jira app, which can help you in writing such expressions. I would appreciate it if you could give it a try.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not natively; you'd need an App to expand the available workflow conditions to restrict a transition based on two fields matching.
Check out Apps on the Marketplace such as...
---
Natively, you might be able to do this via Automation, depending on the logic...
---
Let us know if either option is of interest!
If you need any additional help to set either of these up, we'd be happy to help :)
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Yousuf Al Rawahi ,
You can also make use of JMWE with the help of build your own scripted validator
It could look something like below:
You also have the option to add conditions; for example, the two-field comparison should only be made if the assignee is a so-and-so person or if a filed value is something.
you can raise a support ticket with us, if you need any assistance.
Good day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.