Forums

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

How to restrict status change of jira ticket in specific conditions?

Vasundhara Verma
May 25, 2022

Hi , I have a scenario where I have to restrict the state change of jira ticket when the field values of 'Reporter' and 'Approver' is same. 

For example, I have a workflow, where when a ticket is raised is in 'Pending Approval' state and limited members can change their state to 'Approved' or 'Rejected'. So the Reporter has to mention the person's name in custom field 'Approver'.

So I need to put the restriction that if the reporter and Approver is the same person, he/she should not be able to change the state of the ticket.

 

Thanks

1 answer

0 votes
Nic Brough -Adaptavist-
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 Champions.
June 21, 2017

Ah, yes, the problem is "a few years old".  JIRA 7.something has more functions.

Try

fixversion in versionMatch("regex")

Suggest an answer

Log in or Sign up to answer