Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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