Forums

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

Automation of writing a comment to all the other subtasks with same parent issue key

Hyejin Kim May 31, 2023

Hi, I want to add a comment to other sub-tasks(with same parent), when I wrote a comment on the trigger issue(issuetype : subtask) which contains '@noti_sub' text.  

1. I wonder if I wrote the 'If Condition' wrong.
     => {{triggerIssue.key}} = parent


2. I wonder if I do wrong with the BRANCH RULE setting.
    I want to notify to other subtasks, which have same parent with the trigger issue, so I set BRANCH RULE/RELATED ISSUE to "SUB-TASK". 

 


Here's the rule I set.

WHEN : have a comment on the issue
IF         : have a same issuetype ("subtask")
AND    : compare two values ( {{comment.body}} contains '@noti_sub')
BRANCH_RULE (subtask)
         IF        : compare two values ( parent = {{triggerIssue.key}} )
         THEN  : add a comment on the issue 

1 answer

0 votes
Sachin Dhamale
Community Champion
May 31, 2023

@Hyejin Kim 

 

Welcome to the Atlassian Community !!

 

What comment you need to add to the subtask?

Do you want to copy all comment of parent issue to subtask?

 

Thanks,

Sachin

Hyejin Kim May 31, 2023

No..
The understanding of 'Do you want to copy all comment of parent issue to subtask?' is totally wrong...

I just want to notify to other subtasks, which are the same level of 'comment-added-subtask' and same children of story ticket(parent issue).

Sachin Dhamale
Community Champion
May 31, 2023

@Hyejin Kim

 

What do you mean by notify to other subtask? 

As per your automation rule mentioned above you need to add a comment to the subtask but you didn't mention what need to add in the comment?

 

Also you have some condition parent = {{triggerIssue.key}} &  {{comment.body}} contains '@noti_sub') - can you explain what you need to achieve here?

Hyejin Kim May 31, 2023

1. If someone add a comment to the subtask "@noti_sub I've done my working."

2. Then, through the JIRA Automation, 
  

"Related subtask is done." -> this comment will be add on the other subtasks. 

 

+) "@noti_sub " is a rule name of adding a comment to subtasks, and it's not a reserved word. This could be anyting like "#subtask_alarm" or "%$#" etc...

+)

trigger issue : originally comment-added subtask ticket.

And triggerissue's parent key is same as other subtasks' parent key because they are all under the same story ticket!

Suggest an answer

Log in or Sign up to answer