Forums

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

If parent Change Request is "Cancelled" then all subtasks should be set to "Cancelled"

Sreenadh
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.
November 29, 2022

Hi,

I want to implement :

If parent Change Request is "Cancelled" then all subtasks should be set to "Cancelled"

I have a 1 change request (Parent) then i have created 3 Subtasks which all are in different different statuses like new, ready for approval or Under review what ever it is.

If i Cancel the Change Request(Parent Task) then all the subtasks should automatically set as Cancelled.

Is it possible in Jira Service Management ?

 

Thanks,

2 answers

1 vote
Dave Mathijs
Community Champion
November 29, 2022

Hi @Sreenadh , this is possible via Automation, see Close sub-tasks when parent is completed 

Sreenadh
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.
November 29, 2022

Hi @Dave Mathijs 

Thanks for your response.

I have created like this because in mu Case i want to

If parent Change Request is "Cancelled" then all subtasks should be set to "Cancelled".

Please find the attached screenshot and let me know if it is correct or not.

Thanks,

1.PNG

Dave Mathijs
Community Champion
November 29, 2022

That automation rule seems correct.

Please note that an incoming transition to status 'Canceled' needs to exist from all statuses. In other words, it should be a global transition on the sub-task workflow.

Always test first.

Sreenadh
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.
November 29, 2022

Hi @Dave Mathijs 

Sorry it is not working as expected.

Please find the below screenshots for your reference:

2.PNG3.PNG

Trudy Claspill
Community Champion
November 29, 2022

The problem is specified in the error message in the audit log.

"Ensure the rule actor has permissions (including issue security levels) to see issue and perform transitions"

Looking at the Rule Details for your rule, what is specified in the Actor field?

Does that user have permission to see the subtasks and execute a transition of the subtask to the Cancelled status? 

Like Dave Mathijs likes this
Sreenadh
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.
November 30, 2022

Hi @Trudy Claspill 

Yes User has the permission to execute the transition.

Thanks

0 votes
Trudy Claspill
Community Champion
November 30, 2022

@Sreenadh 

 

Does the workflow include a transition from Ready for Approval to Canceled for subtasks? Can you show us the workflow diagram for subtasks?

I see in the rule that the destination status is specified as "Canceled". I notice that has just one "L" in it. In the Condition prior to that step I see that you are checking to see if the status of the subtask is not "Cancelled". Notice that has two "L"s in it. For the step where you are setting the Status for the subtask are you sure you picked the correct "canceled" status value that is available in the subtask workflow?

Is there an issue security scheme implemented for the project?

What user is the Actor for the rule?

Can that user manually transition the subtask from its current status (Ready for Approval) to the destination status (Cancelled)?

Sreenadh
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.
December 1, 2022

Hi @Trudy Claspill 

Thanks for the response let me look into all the possible ways.

yes there are 2 statuses which is spelled wrongly which are Cancelled and Canceled

1.PNG2.PNG

 

Is there an issue security scheme implemented for the project?---Yes whenever change requester approved then only the status will change.

 

Can that user manually transition the subtask from its current status (Ready for Approval) to the destination status (Cancelled)?---No

I am checking the things which is provided by you and i will let you know once it is done.

 

Thanks,

Trudy Claspill
Community Champion
December 2, 2022

Hello @Sreenadh 

Is there an issue security scheme implemented for the project?---Yes whenever change requester approved then only the status will change.

That is not an Issue Security Scheme feature. Issue Security is used to hide/make visible issues for users. Refer to 

https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-security-schemes/

Can that user manually transition the subtask from its current status (Ready for Approval) to the destination status (Cancelled)?---No

If the Actor for the rule cannot manually make the status change through the UI, then the rule also will not be able to make the status change. The rule has to be run by an Actor that has permissions to execute that status change.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events