Is it possible to restrict workflow transition to a specific group based on custom field value? For example, if custom field = Development then only user in "group x" can do the transition and if custom field = Launch then only user in "group y" can do the transition.
Thank you.
It would be possible with jira expression-based validator. There are several options available on the Atlassian marketplace.
I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira app.
The expression you need would be similar to the following:
if(issue.customfield_x?.value == 'Development'){
return user.groups.includes("x")
} else if (issue.customfield_x?.value == 'Launch'){
return user.groups.includes("y")
} else {
return false
}
You need to change the ID of the custom field to a valid one. In the editor, after 'issue.', start typing the name of the field, and you will get suggestions with the correct value.
I am leaving a link to the app's documentation if you are interested.
I hope it will help.
Cheers
Thank you @Maciej Dudziak _Forgappify_
Unfortunately we would like to achieve this with Jira functionality and not keen on using 3rd party apps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I understand, but I don't think it will be possible without the app. Perhaps you could try to create a workaround using Automation, although that is not my area of expertise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Sagar for the sharing the posts. I have looked at both and unfortunately I could not find the solution for my problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nayan Chauhan I have not tried it but below community posts will help get some reference for your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.