Cloud Migration Resources
Planning a Jira Cloud migration? These resources can help you get started:
→ JMWE Cloud features – Review Cloud features and understand key differences between DC and Cloud.
→ Migration support from Appfire – Learn how we can help you migrate smoothly.
How to add a comment added during the transition of the parent issue as a comment on its linked issues
Requirement
As a JIRA Administrator, I want every comment entered on the parent to be copied onto the sub-tasks.
What should be achieved in the requirement?
Fetch the comments provided during the transition of the parent issue.
Copy the last entered comment on the parent issue to all its sub-tasks.
What do you need?
JIRA Administrator login
JIRA Misc Workflow Extensions plugin
How to do?
Click Edit for the workflow. In the Workflow Designer, select the transition you wish to configure the post-function on.
Click on
Post Functionsin the properties panel.Click on
Add post-function.Select
Comment linked issuesfrom the list of post-functions.Select the link jira_subtask_outward from the
Issue Linkdrop-down.Select comment type as Raw Value from the
Comment typedrop-down.Input the following groovy script in the
Valuefield.com.atlassian.jira.issue.comments.CommentManager commentManager = com.atlassian.jira.ComponentManager.getComponent(com.atlassian.jira.issue.comments.CommentManager.class); commentManager.getLastComment(issueObject).getBody();Click on
Addto add the post-function to the transition.
What to test?
Create an issue in the project.
Create sub-tasks for the above created issue.
Trigger the transition of the parent issue, on which the post-function is configured.
Add a comment during the transition.
The linked issues should be commented with the same comment entered for the parent issue.