Forums

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

Jira Automation detecting Issue Type of Sub-task not matching

Ilya Sadukovskiy
Contributor
March 7, 2024

I am trying to add automation that has a step in detection if issue type is Sub-task, however it does not match as expected. Help appreciated. 

Below you will find screenshots of automation workflow and it goes into Else block instead of IF. Also attached are screenshots of Issue Types. Additionally I must add this rule is global.

Cursor_and_Audit_log_-_Automation_-_Jira.png

IDA_SaaS_-_Issue_types_-_Jira.png

 

1 answer

0 votes
Bill Sheboy
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 7, 2024

Hi @Ilya Sadukovskiy -- Welcome to the Atlassian Community!

Would you please post an image of the audit log details showing the rule execution, for more context?

 

That appears to be a team-managed project, rather than a company managed one.  (You may confirm that by looking for the project type at the bottom-left side of the page expanding area.)

Team-managed projects each have their own types, and so the exact type may not be the one you are checking in the condition.  Please try writing this to the audit log before the condition to check the type:

type name: {{issue.issuetype.name}} and id: {{issue.issuetype.id}}

 

Kind regards,
Bill

Ilya Sadukovskiy
Contributor
March 26, 2024

@Bill Sheboy  Sorry for delayed response.
It is a team managed project.
Here is what was logged:  `type name: Sub-task and id: 10035`

Bill Sheboy
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 26, 2024

Thanks for that information.

Would you please post an image of the audit log details showing the rule execution when the condition does not match?

Ilya Sadukovskiy
Contributor
March 26, 2024

Audit_log_-_Automation_-_Jira-2.png
I tried modifying the IF condition to this. Have not yet confirmed if that will work
Audit_log_-_Automation_-_Jira-3.png

Bill Sheboy
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 26, 2024

There is an error indicating an attempt to set the Assignee during the transition to DEV COMPLETE.  What is in that rule action in regards to Assignee?

 

Next, I was asking to see the audit log for the rule as it was written before, and it appears you have changed to try to check by issue type's id.  Please retest after that change and then post the new audit log details image.  Thanks!

Ilya Sadukovskiy
Contributor
March 26, 2024

The log attached is before my changes. I applied changes just now. The original question has the if condition I have been originally using.
The Assignee error is separate issue, but it it very strange one. I just picked to Assign user to Unassigned and it complains. 

Bill Sheboy
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 26, 2024

Please re-test your rule after the changes which look specifically for the issue type id in the condition.

Suggest an answer

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

Atlassian Community Events