Hello @ all,
i have a question regarding automation in Jira. Following situation: I have a chain of automations running subsequently. Based on specific conditions I want to copy specific labels to a new issue from issues already created in previous automations. This requires that I fetch the labels of specific, already created issue using smart values. So what tried to do is:
- Trigger the automations using webhooks
- Providing additional data in the webhook body
- Trying to fetch the labels using those values
The payload in http request: looks like this (please don't wonder why there is everywhere "triggerIssue.key" this will change):
{
"issues": [
"{{triggerIssue.key}}"
],
"data": {
"parentIssue": "{{triggerIssue.key}}",
"predecessorIssue": "{{triggerIssue.key}}"
}
}
In the destination automation rule I then want to fetch the labels of the "parentIssue" and add them to a newly created epic. So I added to the labels field of the new epic the following smart-value: {{webhookData.parentIssue.labels}}
Howeber, this does not work. Does anyone have an advice for this issue?
Thank you in advance for your support.
Best regards
Endre
Hi @Endre Szekacs -- Welcome to the Atlassian Community!
Context is important for automation rule questions, and there seems to be quite a bit happening in your rules.
I recommend first posting an image of your complete automation rule(s), images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
To get the issue keys from your webhook data, you could try to reference the smart values directly or use the text functions, including match(). With the key, a lookup issues action with JQL could then load the issue data for use in your issue create action of the new epic.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.