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.
Nice! Good to know! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the answer!
Thank you :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Koxaras _Relational_ 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.