I'm attempting to create a rule in Automation for Jira that would create the following by manual activation from a trigger issue.
It sounds simple enough to do and I have no issue linking ticket 1 to trigger issue, my problem is with linking ticket 2 to ticket 1. If I link to most recently created issue it tries to link to itself. I've also tried creating a new smart variable for use within the rule but can't seem to make it work and am not seeing any documentation on that feature.
Any suggestions would be appreciated. Thank you.
Hi David,
I have done something similar involving 3 issues but with a different combination. I ended up creating two rules but had to have something in common between the 2 issues that were created at different times.
In your case I am wondering if you could have a rule that creates ticket 1 from the trigger and then somehow uses ticket 1 to create 2 so they are linked. That's the scenario I have. Then I use the second rule to link the trigger issue with ticket 2. But I have a common unique value between the trigger issue and ticket 2 so I can make the linkage.
Hi David and John,
Two rules sounds like a good way to go, given potential timing issues in a rule like this.
Or you could try the following...
Once Ticket 1 is created, if you can uniquely identify it (while still inside your rule's scope) add a Lookup Action with JQL to find Ticket 1. Then use that context to add Ticket 2 and link to Ticket 1.
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
Developer from Automation here.
You should be able to achieve this use-case by using the "Linked issue" field on ticket creation, where as the link issue action would run after the new one has been created.
Something like this should work:
I hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Yvan Martin Thanks!
This worked exactly as needed! Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello there
For tasks in different projects it doesn't work.
Any idea what to do ?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tal Stanek - You need to create a new question and post to the Community so more people will see it.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.