On Jira Data Center v9.4.10
Trying to create an automation that copies ALL comments over when a new issue is split from the original. We have a "DevEscalate" transition that auto-creates a new issue with a "split" relationship and we would like the comments to carryover.
Thanks in advance for any assistance!
Hello @Ryan Bullock
Unfortunately there is no solution here. Best you can do is to get all comments from original issue and update new issue as 1 comment.
@Kalyan Sattaluri Thanks, how would I do that? I did try from a previous post, but could not get it working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Ryan Bullock
General syntax is:
{{#issue.comments}}{{index}}. {{body}}{{^last}},{{/}}{{/}}
as shown here: LINK
Now depending on how you want to split the issue and set up this rule, you may have to do lookupIssue and get original comment from below, so depends on how you are handling it what triggers this rule..
{{#lookupIssues.comments}}{{index}}. {{body}}{{^last}},{{/}}{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this, but it didn't copy the comments from the original to the new split Jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Ryan Bullock
Your JQL for this should be ==> issue in linkedIssues({{key}}, "split from")
But going back and checking, in Data center edition, even though we have lookupIssues, only a few fields are accessible, and comments is not one of them.
So instead of being able to access comments directly from lookupIssues, we have to make a web request call to this end point get the comments.
So have to make a call to below end point,
https://yourdomain,net/rest/api/2/issue/{{lookupIssues.key}}/comment
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.