Forums

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

How can i generate a comments under all sub-tasks ofr Parent issue?

Casper
Contributor
September 18, 2023

- What do I have?

1. I have the Parent-issue, issuetype = Story.

2. I have the sub-issue, issuetype = Sub-Task.



What do I need?
I want to generate comments.

Where?
Generate comments under all Sub-Task of Parent-issue.

When?
When all Sub-Task moved to the status 'In Progress', Comment under each sub-task, 'Task are in progress'.

How?
Here I need your help =)

 

Additional screenshots of my automation rule and Jira board:

Screenshot 2023-09-18 at 13.31.49.png

This rules works BUT, it's works each time when sub-task moved to status 'In progress'
I need to comment when ALL sub-tasks in the status 'In progress' thats a main case
need to solve.

Screenshot 2023-09-18 at 13.44.36.pngScreenshot 2023-09-18 at 13.44.46.png

So as you can see i moved not all sub-issue but it's already commenting sub-tasks.
I don't know what filter i need to create or rule to explain Jira when it's need to comment.

 

I hope I explained it clearly, thank you!

All the best,
Ostap

1 answer

1 accepted

1 vote
Answer accepted
Vishal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2023

Hi @Casper 

First of all, what are the odds that all the sub-tasks would be in In Progress status at the same time, what if one of sub-tasks moves ahead in the in the workflow beyond In Progress status ? What I am trying to say is the automation that you are trying to create always has odds to fail because of process, unless you have some conditioning going on in the workflow.

Moving on to your automation, there is problem in your automation configuration, it should look like below : The highlighted part uses the related issue condition rather than issue field which checks the condition All match specific jql. And then comment part should be under your if statement & not as separate component like you did which is at same level as branch rule level. This should work out.

 

Related Issues.jpg

Casper
Contributor
September 18, 2023

Thank you!

For the case that I don't need for status 'In Progress', in reality the case is much harder to describe so I use an example with 'In Progress

However, the goal is to send comments to each sub-task when all sub-task is in the same status.

Vishal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2023

@Casper I assumed so that its a lot more than what you described but anyways the above suggested automation should work, let me know how it goes.

Like Casper likes this
Casper
Contributor
September 19, 2023

Got it!

Sure @Vishal 

Casper
Contributor
September 19, 2023

@Vishal

I received a comment that I want only when all sub-tasks in status 'In Progress'

But the problem is I received the comment into Story, not sub-tasks.


Can you help me to receive comments on each sub-task in status 'In progress'?

Thanks!

Casper
Contributor
September 19, 2023

Screenshot 2023-09-19 at 10.55.54.png

Vishal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 19, 2023

Hi @Casper 

I fear, this may not be possible then because at this moment automation does not allow branch rule within branch rule, which is what is needed for your requirement.

Happy to be proven wrong though, if there is a way.

Like Casper likes this
Casper
Contributor
September 19, 2023

got It @Vishal 

Thank you!

Vishal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2023

Hi @Casper 

I just gave another thought & then came up with a workaround, which may be helpful, its taking a long route but would do that work.

So the automation which I suggested above will remain same, but instead of commenting in the Story, I would update a custom field lets call it "All Sub-Task InProgress?" with values Yes/No & I would update its value to Yes.

I'll create another separate automation, which will check the field value changed for the Story & if the value is Yes, then I'll use For each subtask & comment in them.

I think, this should work. Check & let me know if it works. 

Like Casper likes this
Casper
Contributor
September 21, 2023

Thanks @Vishal

Like Vishal likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events