Hey all,
I have linked issues in my Jira project, and i want to make sure once issue deleted, and this issue have a linked issue with the main issue link connection.
The status of the linked issue will change back to Open / New.
The problem is, once issue delete it is "lost"
and I'm getting this message:
Hi @Eran Roiter
There are challenges when rules with the Issue Deleted trigger try to access any related issues:
For the rule you show, I can think of two possible workarounds:
I recommend the two rule approach as it will be faster and easier to maintain, even though it may be more difficult for others to understand.
Kind regards,
Bill
Hey Bill,
Thanks for your comment, can you show an example of the two rules option?
I'm not sure i understand how to do so.
Thanks !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please note well: chained rules like this can be difficult to build, so I recommend testing thoroughly before performing any actions that cannot be reversed.
For example, you could change the first rule trigger to manual and replace actions (such as Send Web Request) with writes to the audit log until you have confirmed the correct issues are being found for processing.
On to the how-to information...
First, disable your current rule, as you may copy it as a starting point for the other two rules.
The second rule could look like this. This one is created first so you have the generated webhook URL.
The new first rule could be:
{{#issue.issuelinks}}{{#if(equals(type.outward, "Main Issue"))}}{{outwardIssue.key}},{{/}}{{/}}
{
"issues": {{varLinkedIssues.substringBeforeLast(",").split(",").asJsonStringArray}}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eran Roiter
When an issue is deleted, everything linked to it is lost. Every link for any linked issues is deleted.
Example. JIRA-1 is linked to JIRA-3. link is related to. If I delete JIRA-3 that link will be deleted from both sides.
Hence why you get the automation error.
You will need to find another way to move the status.
> The status of the linked issue will change back to Open / New.
Try an automation to monitor when an issue link is deleted. then move the ticket to the status you need.
Regards
Aaron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Eran Roiter
Unless these issues are being deleted in bulk, I'd just make an automation rule that would be manually triggered by the users from the Actions menu, so the trigger would be Manual.
Then do all you need to do on the linked issue, and as the last step, delete the trigger issue.
The remaining challenge is to get the users to use the Action instead of the Delete issue menu option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thanks for the answer, Maybe I wasn't clear, there are tickets that are linked to a deleted ticket, their link with a certain status, which brings up the window that asks to add the LINK ISSUE What happens is that once the "main" ticket is deleted. The rest of the tickets remain in the same status, they aren't returning "back" to a New / Open status.
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.