Forums

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

Conditions for transitions

QA McCann
Contributor
September 19, 2018

Hi all,

I have a conundrum I need help with. 

We have an issue type of Bug.

Bug has a list of priorities that can be selected (Priority 1, Priority 2, Priority 3).

There's a free text field called "Downtime duration".

I want Downtime duration to only be a mandatory field if a user has selected Priority 1 and is trying to close a bug ticket.

That field doesn't need to be mandatory for Priority 2 and 3 tickets.

Is this possible?

 

 

1 answer

0 votes
Joe Pitt
Community Champion
September 20, 2018

If you have jira suite utilities or another plugin that will allow you to test for a condition and set required fields on transitions you can have 2 transitions, 1 for where you want the field to be required and one where you don't. The user will only see one of them. The priority field will need to be set before the status were the transition is. 

QA McCann
Contributor
September 21, 2018

Thanks Joe, this really helped!

Joe Pitt
Community Champion
September 21, 2018

@QA McCann you can also use this technique for getting approvals from different roles. Have fields named something like group approval where you substitute group for the names. Then only allow the transition for someone in that project role and test to see the field isn't blank. I use a select Yes, No, N/A list. The transition should go back to the current status. After all the fields are not blank one or more transition become available  for the project admin, or other role, to move the issue along for more work, close it, or send it back to development for more work. In the send back option clear the voting fields. 

QA McCann
Contributor
September 25, 2018

Hey @Joe Pitt - thanks for the help on this - really appreciate it.

Joe Pitt
Community Champion
September 25, 2018

Please mark the answer as accepted

Suggest an answer

Log in or Sign up to answer