Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't come up with a way to control who can perform a specific transition

Colleen
Contributor
September 27, 2022

There is a workflow, shared by many projects, that has two conditions for a particular transition:

1. Only members of the "set security issue" permission/project role can transition an issue from open to defined status. 

2. The issue can only be transitioned if has a custom field set to production (excludes certification and test tickets)

Right now there are a bunch of users across projects that have the first permission that I don't want to be affected by any changes. 

I have one user who should be able to transition all issues whether they have the field as production, certification, or test. 

And I have one user who should only be able to transition issues with the field set to certification. 

I'm struggling to come up with a way to configure so that no user gets more access than they need. Or any next best solutions. 

1 answer

0 votes
Rilwan Ahmed
Community Champion
September 27, 2022

Hi @Colleen ,

Below is my solution. Please check if it works for you. 

  1. I have one user who should be able to transition all issues whether they have the field as production, certification, or test. 
    -- Create a new transition from Open To Defined status and add User Is In Any Group OR User Is In Any Project Role condition based on where only this particular user is part. If group/role doesn't exists, then create one. 
  2. And I have one user who should only be able to transition issues with the field set to certification
    • Create one more transition from Open To Defined status 
    • Add User Is In Any Group OR User Is In Any Project Role condition
    • Add Value Field condition and select "All of the following conditions" in condition screen of the transition. 

Added a screenshot just to show an example. Here I have added two transitions from Planning to Cancel. 

image.png

Colleen
Contributor
September 27, 2022

Hi Rilwan, I was unaware that you could have multiple transitions going from one status to another. So Jira will evaluate and as long as one of them meets all the conditions, the issue will transition?  

Colleen
Contributor
September 27, 2022

I can't find any documentation on this, but you're saying that depending on the categories of users above, each user will have a transition from open to defined that will work? So as long as at least one of the three transitions successfully validates, the issue will transition? Because yeah then seems like it would work how I want. 

Or would all of the transitions from open to defined have to pass before the issue can change statuses? Because that obviously wouldn't fly. 

Rilwan Ahmed
Community Champion
September 27, 2022

Hi @Colleen ,
Status/Workflow button displays to a user Only when the conditions meet, else it will not be displayed. 

Based on the conditions, the button will display to particular users. 

Colleen
Contributor
September 29, 2022

Ok just wanting to clarify because the changes I need to make could have a huge impact... you're saying I'll have three separate transitions, each with their own conditions, and if a user passes one of the transitions, they will see the option to transition to defined? It's not required that all the transitions pass before an issue can move? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events