Hi, Trying to make a simple Jira Automation (conditional) rule that (if met) adds a label that contains a smart value of the inward related issue
Example
- Jira Story A
- "relates to" linked Jira Story B
- Action Code I have to add label with the condition met
- {
"update": {
"labels": [{
"add": "tmsLink={{issue.issuelinks.inwardIssue.key}}"
}]
}
}
So this rule works as is if I only have one linked story (like above). But if I have multiple linked issues with different link types ("is cloned by" or "is blocked by" etc.) it fails to grab the issue id key. Is there a way I can specify in the json that I only want it to lookup/grab the related issue key that is "relates to"?