Requirement: When a new issue is created in Project A, I want to create a clone in Project B ( all ready accomplished) I'm facing challenges transitioning the cloned issue along with the parent issue (cloned by). for e.g. when the parent issue (cloned by) in Project A transitions from one status to another, I want the cloned issue in project B to transition along with it as well, so its outward link direction.
I'm still learning groovy and found this script but its for the inward link direction clones --> cloned by.
Note: The cloned issue is just a place holder in project B and wont be acted upon and should just transition along with the parent (cloned by) issue in project A. Also, both projects share the same workflow, so having different statuses wont be a problem
I even tried doing this with Jira automation but looks like I need to write rules for each transition and cannot be accomplished with just one rule (If-else).
Any help in the regard is highly appreciated.
Hello, In this case, if both tickets have the same flows, it is not necessary to do an if else.
In the trigger you can leave the two options blank so that it is executed in all cases.
Then within the branch of the related ticket you can select "Copy from trigger issue" so that it goes to the same status as the ticket triggered the automation
Thank you for the question.
You can modify this script to be a post function and to transition an issue it will work as long as the transition id that you specifies is a valid transition in the workflow that the issue can take from its current status as you can only transition an issue if a valid transition exists as the API's require this.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events