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
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

452 views 2 5
View question

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