workflow and label

Azam Siddiqi April 14, 2014

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

0 votes
Boris Georgiev _Appfire_
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 Leaders.
April 14, 2014

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')

Azam Siddiqi April 15, 2014

Thanks for quick response.

I will try and let you know.

Suggest an answer

Log in or Sign up to answer