How to set a workflow condition for group and project role in Jira

Kishore Kumar Gangavath April 15, 2022

How to set a Jira expression on workflow condition for user must be in "Jira-administrator" group or Project role "atlassian-addons-project-access"

3 answers

1 accepted

1 vote
Answer accepted
Kishore Kumar Gangavath April 15, 2022

I able to set this by using the Jira expression

Kishore Kumar Gangavath April 15, 2022
user.groups.includes("jira-administrators") || user.getProjectRoles(project).map(p => p.name).includes("atlassian-addons-project-access")
0 votes
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2022

Hi @Kishore Kumar Gangavath 

Conditions for group and project role are native capabilities.  You would set two conditions:

  1. User is in Group: Jira-administrator
  2. User is in Project Role: atlassian-addons-project-access

By default conditions will be set to operate where all conditions must be true.  You then just need to change the drop-down to "Any of the following conditions".  See the screenshot below:

2022-04-15_10-22-24.png

0 votes
Ed Gaile _Atlanta_ GA_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2022

Hey Kishore - 

If you click on a workflow transition, you can add a condition.  There are several available (see screen shot) that allow you to specify user must be in a specific group or role in order to see/use the transition.

 

jira-condition.png

Suggest an answer

Log in or Sign up to answer