The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am trying to develop and automation that can perform a JQL lookup and then link all of the matching issues to the originating ticket.
I have the trigger, lookup, and edit functions working if the JQL only returns a single field, but if the JQL returns multiple fields the edit issue function attempts to link "issue-1,issue-2" which causes an error. Is there a way to iterate over the {{lookupissues}} variable and pass each instance to the "Edit Issue fields" function?
To add some color this is for our security team who wants to track certain fields like bad-actor IP addresses across tickets, so if bad ip 1.2.3.4 gets added to a special field in the ticket, other issues with that IP in the same field should be linked automatically.
For reference this is my current "Edit issue Fields" Function:
{"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "Relates"
},
"outwardIssue": {
"key": "{{lookupissues.key}}"
}
}
}
]
}
}
This is the whole workflow if that's helpful:
Hi @Thomas Wick
Will the following automation works for you?
Hope that this was what you well looking for. I tried it, and successfully managed to linked all the issues on my JQL to the triggered issue.
Let me know!
Alex
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Koxaras can you help me in telling me what to do if we want to have a manual trigger, because linked issue is showing only Trigger Issue or recently created issue.
How to link any ticket ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.