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
%components
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")
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')
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.