I am trying to create some automations based upon labels found within the Lookup Issues action.
My Lookup JQL is simple: summary ~ \"{{issue.summary.substring(1,6)}}\" and issuetype = Initiative
I can correctly return data such as {{lookupIssues.summary}} however, when I try to access {{lookupIssues.labels}} I get nothing.
I'm just trying to query the Initiative associated with the current issue, and branch based upon certain labels.
Any thoughts or help?
Hi @joe bednarz
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
If you are using Jira Server or Data Center, the Lookup Issues action only returns a limited set of fields, and Labels is not in there:
Kind regards,
Bill
Thank you for your reply Bill! Truly appreciate it!
I've actually managed to create a work-around... since I was trying to branch based upon a label being present, I simply added the "labels in (...)" to my JQL, and then checked for {{lookupIssues}} not being empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To list all labels for each issue found by your Lookup Issues action you can try using this smart value
{{#lookupIssues}}
Issue {{key}}: {{#labels}}{{.}}, {{/}}
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.