The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy a comment from Parent Issue to Subtask with a specific name whenever a particular user comments

Disha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2024

This is a simple problem however I am having a tough time on the last part where I need to copy the comment from the parent issue to the subtask. I am currently using a hosted Jira service and Jira automation rule to achieve this task.

Task to Achieve:


If issue is commented
If the user is "AAAAA"
For Current Issue:
    Check if the issue contains a subtask with the title "Comments from AAAA"
    If there is no subtask with name "Comments from AAAA"
    Create subtask with name "Comments from AAAA"
For Current Issue:
    If the subtask exists with the name "Comments from AAAA"
    Copy the comment from parent issue to this subtask
    Delete comment from parent



Progress So Far:


1. I was able to create Subtasks under my Current Issue with the title "Comments from AAAA"

2I am not able to copy the comment from parent issue to this subtask and also delete the comment from parent issue.

This is what my automation looks like
Jira Automation.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Mark Higgins
Community Champion
February 6, 2024

Hi Disha,

Are you on cloud? Automation has a branch option, that can be used to update sub-tasks.

https://support.atlassian.com/cloud-automation/docs/jira-automation-branches/

Hope this helps.

Regards

Mark

Disha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2024

Hello Mark,

I am using a Jira hosted instance and not a cloud instance. I am not sure if Jira automation branches are available on those ones.

Mark Higgins
Community Champion
February 9, 2024

Hi Disha,

Apologies, I missed that line, and I don't have experience on Hosted automation.

Mark

TAGS
AUG Leaders

Atlassian Community Events