Check label as a condition of running a "create a sub-task" post-function script

ScottW February 12, 2014

I am interested in creating a series of sub-tasks for an issue as a post-function when an issue is created. However, I don't want one of the sub-tasks created if the label "No-QA" is set. I am able to get the issues to create, but I'm not sure the correct syntax for checking if there is no "No-QA" label.

3 answers

1 accepted

6 votes
Answer accepted
JamieA
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.
February 12, 2014

Not tested, but try:

! ("No-QA" in issue.labels*.label)

Try in the condition tester first.

ScottW February 13, 2014

That was it. It worked like a charm. Thank you!

0 votes
Lance Conn August 26, 2019

This was giving me some issues as a condition in Jira Cloud, but the following works...

! ("No-QA" in issue.fields.labels)

0 votes
Anand Dandikar September 14, 2016

Thanks Jamie, it works for me on JIRA 6.3.13!

Suggest an answer

Log in or Sign up to answer