Is it possible to restrict workflow transition to a specific group based on custom field value?

Nayan Chauhan June 18, 2024

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.

3 answers

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2024

Hi @Nayan Chauhan 

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

 

Nayan Chauhan June 18, 2024

Thank you @Maciej Dudziak _Forgappify_

Unfortunately we would like to achieve this with Jira functionality and not keen on using 3rd party apps.

Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2024

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.

0 votes
Nayan Chauhan June 18, 2024

Thank you @Sagar for the sharing the posts. I have looked at both and unfortunately I could not find the solution for my problem.

0 votes
Sagar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 18, 2024

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events