workflow and label

We use labels for lot of things to dictate where the story is being worked on.

If I have a Label "In-Dev-Progress" on one of the ticket, I dont want anyone to click on "Ready for QA" button on the top. The button becomes clickable only when the Label is changed to "Dev-Complete".

Can Labels be used inside workflow to decide the outcome?

Thanks

A

1 answer

You can add Script condition (from Script runner add-on) to check if the issue has specified label and return false if it contains the In-Dev-Progress label

And here's the code:

!issue.labels.collect{it.label}.contains('In-Dev-Progress')

Thanks for quick response.

I will try and let you know.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 26, 2019 in Jira Software

How to prevent the propagation of unused project schemes, workflows & screens in Jira software

Atlassian ranks project attributes as the third most important factor impacting performance in the category of data. It’s not surprising, since project attributes are precisely the rules used to ma...

572 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you