Forums

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

Jira Cloud Automation: search for parent issues and transition parent and sub-task

Bernd Anderer
Contributor
June 27, 2023

I want to use Jira Automation to do this:

- run a JQL every day, that finds certain Parent Issues

- for each parent Issue that is found, I want to

-- transition the parent to DONE

-- transition the sub-task, if the sub-task is of type "payment"

I know how to setup the scheduled automation, I am aware of the Branch function.

I just don't know how to update the sub-tasks that must be of a certain type.

Any idea how that can be done?

 

Thanks in advance,

Bernd

 

 

1 answer

1 accepted

0 votes
Answer accepted
Manoj Gangwar
Community Champion
June 27, 2023

You can use the Branches.

For Subtasks

If Issue type = payment

Then update the issue

Bernd Anderer
Contributor
June 27, 2023

thanks for the answer.

And what about the parent - how do I update the parent issue?

Manoj Gangwar
Community Champion
June 27, 2023

Schedule> JQL

If issue type = parent issue type

Then transition to done

Bernd Anderer
Contributor
June 30, 2023

I guess I have to more specific :-)

I have a parent Issue Type "Bill", with child Issue Type "Sub-Task"

I need to filter for the sub-tasks, eg. "issue type = Sub-Task AND paymentDate = Now()"

All the Sub-Task that match, need to be transitioned and also the according parent.

Any idea? :-) 

Manoj Gangwar
Community Champion
June 30, 2023

In that case you have to create two automation rules. 

One for Child another for Parent

For Child>

"When:Scheduled

Searches with:

Type = Bill 

Every 1 days"

"If issue matches JQL

Type = sub-task and paymentdate= now()"

Then transition the issue to "done"

 

For Parent>

When Issue transition to "done"

If Type = Sub-task

Branch rule For Parent

Then transition issue to "Done"

Bernd Anderer
Contributor
June 30, 2023

Thank you. I didn‘t see that I can add FOR CHILD and FOR PARENT in one automation.

Now that I know that, it is actually simple :-) Like always.

 

Thanks for your help!

Like Manoj Gangwar likes this

Suggest an answer

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

Atlassian Community Events