JIRA Workflow Toolbox: a way to use jql search by multiple Components in post-function

I have a workflow post-function that should search issues with jql expression like 

project = ABC AND component in (%components)

The problem is that some of components consist of two words like "Component A" and if issue has multiple components like this, jql search in post-function does not work. Because it requires format with "" in case if field has multiple values, like: 

project = ABC AND component in (component1, "Component A", "Component B")

and when I use 


in post-function template, it present components without "" and as result jql query is broken.
The question is: is there a way to take content of Component field (Component a, Component B) and copy it in another field in as ("Component a", "Component B")

1 answer

0 vote

I'm not sure if copying the field value is the best way to address this problem.

I understand you might not be able to use the double quotes here, but you should still be able to use a single quote ( ' ) in order to separate these.  That way this can still be a valid JQL query, and it should still allow you to only have a single set of double quotes here.


So you should still be able to make your query look like this and have it work:

project = ABC AND component in (component1, 'Component A', 'Component B')

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Apr 19, 2018 in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

366 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