You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I noticed that my current JMWE app is not copying comments (with the attachment link) when the post-function executes. Please note that this post-function is right after creating the issue. Is there a way I can do a groovy constant or expression to copy the attachments in the comments as a link? Thank you!
I'm not sure I understand where the comments can come from on the original issue, since it is being created (you placed the Create Issue(s) post function on a Create transition. Can you elaborate on how the comments and attachments are added to the original issue during its creation?
Is this Jira Service Management? Are you talking about tickets created on the support portal?
Judging from your reply to Joseph, the attachments are being copied to the issue clone, but the comment is not copied, correct? But I just don't understand where the comment is coming from, since the original issue (not the clone) was just created, and you cannot create an issue with a comment. So my guess is that the issue is first created (by JSM), and the comment is added after the issue is created, and thus after the Create transition and its post-functions run.
This is interesting as the post-function calls seem to be properly setup. Do you know if the original case's attachments and comments were added to the issue after it was created already?
Jira/JSM Functional Lead, Global Technology Applications Team
Thanks for your updates. Based on your latest reply to @David Fischer _Appfire_ , I agreed with David that one cannot add comment to an JSM issue during the creation process of the original ticket. The comment must been added after the issue was created.
My only option for you is to create your clone issues in another status transition's post function call.
Example - Instead of firing post-functions calls for cloning the issues action at "Create" transition, you can add a new WF status where you can auto promote your issue into. At this transition, you will call your post-function for the issue cloning actions. This way, by the time the transition is executed, you should have both attachments/comments to the original issues done/capture already.
Hope this helps.