Forums

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

Transition Story to "Test" when all the sub-task are "Closed"

Ketevan March 10, 2021

Hello.
I've created Jira automation --> I want to transition Story and Task to the status "test", when all of the sub-tasks under this issue will be "Closed".

Can you please tell me what mistake I did?

Jira.png

1 answer

1 vote
Gideon Nolte _Eficode_
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.
March 10, 2021

Are you able to view or share the Audit Log for the rule to identify which block fails? 

Ketevan March 11, 2021

ჯირა.png

Like Gideon Nolte _Eficode_ likes this
Ketevan March 11, 2021

jira3.png

Ketevan March 11, 2021

There was user story T3-635, there was one sub-task closed, then I closed the other sub-task and waited for the story to be in "Test", but automation failed.
Did I something wrong? 

Gideon Nolte _Eficode_
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.
March 11, 2021

I suppose {{issue.type}} should be {{issue.issueType.name}}
See the reference for Smart Values here.

...but

I would personally recommend a setup like this:

- Limiting the trigger to transitions to Done only
- Not matching the name but rather checking if it's any type of subtask to allow for other sub-task issue types

 

Let me know if you run into any more problems down the rule or if this fixed your issue.

Like Ketevan Tskhadadze likes this
Ketevan Tskhadadze
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2021

Hello. Thanks for the advice.

I filled the "Done" field and didn't work. Then I filled the "from" field too but it didn't work either. 

Then I filled JQL - type in subtaskIssueTypes() and now it works. Thank you!

Suggest an answer

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

Atlassian Community Events