Hello.
I am trying to link issues that have the same components.
How do I get list of components that can be used by JQL?
This is throwing errors:
component = {{issue.components.name.asJsonStringArray}}
Error:
SD-768: "((component = ["ABC"]) AND (key != SD-768)) AND (project in (10001))" - Error in JQL Query: Expecting either a value, list or function but got '['. You must surround '[' in quotation marks to use it as a value. (line 1, character 15)
Using this documentation>
https://support.atlassian.com/jira-software-cloud/docs/smart-values-json-functions/
This seems to do the trick, first component is enough for me:
component = {{issue.components.first.name.asJsonString}}
Documented at: https://blog.codebarrel.io/automation-for-jira-smarter-smart-values-9da5598f2bdc
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.