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

Automation not working on all projects boards

Nino Garcia January 18, 2023

Hello,

I have an automation that looks when an issue transactions into one status to the other and the copy fields from the parent ticket.

 

I have this automation in on Project board and it behaves as expected all the fields populate base on the parent ticket here is the logic of the automation that is working has: 

{"cloud":true,"rules":[{"id":1692815,"clientKey":"sungage.atlassian.net","name":"Assign subtask to assignee from parent.","state":"ENABLED","description":null,"authorAccountId":"557058:fe329511-e829-4cc1-970e-26eec77bcf2a","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1615395833978,"updated":1635449764788,"trigger":{"id":"68736488","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.event.trigger:transitioned","value":{"eventKey":"jira:issue_updated","issueEvent":"issue_generic","fromStatus":[{"type":"NAME","value":"Ready for QA"}],"toStatus":[{"type":"NAME","value":"In Development"}]},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"68736489","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"subtasks","jql":"","linkTypes":[],"onlyUpdatedIssues":false,"similarityLimit":40,"compareValue":0},"children":[{"id":"68736490","component":"CONDITION","parentId":"68736489","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"NAME","value":"QA Assignee"},"selectedFieldType":"com.atlassian.jira.plugin.system.customfieldtypes:userpicker","comparison":"EMPTY","compareValue":null},"children":[],"conditions":[],"connectionId":null},{"id":"68736491","component":"ACTION","parentId":"68736489","conditionParentId":null,"schemaVersion":10,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"QA Assignee"},"fieldType":"com.atlassian.jira.plugin.system.customfieldtypes:userpicker","type":"SET","value":{"type":"COPY","value":"parent"}}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"68736492","component":"CONDITION","parentId":"68736489","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"ID","value":"assignee"},"selectedFieldType":"assignee","comparison":"EMPTY","compareValue":null},"children":[],"conditions":[],"connectionId":null},{"id":"68736493","component":"ACTION","parentId":"68736489","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.assign","value":{"assignType":"SPECIFY_USER","smartValue":null,"itsmOpsOncall":null,"jql":null,"issueToCopy":null,"fieldToCopy":null,"listAssignMethod":null,"assignee":{"type":"COPY","value":"parent"},"restrictedToGroup":null,"group":null,"role":null,"excludedUsers":[],"userList":[]},"children":[],"conditions":[],"connectionId":null},{"id":"68736494","component":"CONDITION","parentId":"68736489","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"ID","value":"status"},"selectedFieldType":"status","comparison":"ONE_OF","compareValue":{"type":"NAME","modifier":null,"value":"[\"Backlog\",\"Selected for Development\"]","multiValue":true,"source":null}},"children":[],"conditions":[],"connectionId":null},{"id":"68736495","component":"ACTION","parentId":"68736489","conditionParentId":null,"schemaVersion":10,"type":"jira.issue.transition","value":{"operations":[],"advancedFields":null,"sendNotifications":true,"destinationStatus":{"type":"NAME","value":"In Development"},"transitionMatch":""},"children":[],"conditions":[],"connectionId":null}],"conditions":[],"connectionId":null}],"canOtherRuleTrigger":false,"notifyOnError":"FIRSTERROR","projects":[{"projectId":"10100","projectTypeKey":"software"}],"labels":[],"tags":[],"ruleScope":{"resources":["ari:cloud:jira:8617148b-b5bf-4af8-867f-878fecd139b8:project/10100"]},"writeAccessType":"UNRESTRICTED","collaborators":[]}]}
and here is the logic of  the one that is not working:

{"cloud":true,"rules":[{"id":9893782,"clientKey":"sungage.atlassian.net","name":"Assign subtask to assignee from parent","state":"ENABLED","description":"","authorAccountId":"557058:fe329511-e829-4cc1-970e-26eec77bcf2a","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1674080420064,"updated":1674084089501,"trigger":{"id":"205846191","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.event.trigger:transitioned","value":{"eventKey":"jira:issue_updated","issueEvent":"issue_generic","fromStatus":[{"type":"NAME","value":"Ready for QA"}],"toStatus":[{"type":"NAME","value":"In Progress"}]},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"205846192","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"subtasks","jql":"","linkTypes":[],"onlyUpdatedIssues":false,"similarityLimit":40,"compareValue":0},"children":[{"id":"205846193","component":"CONDITION","parentId":"205846192","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"NAME","value":"QA Assignee"},"selectedFieldType":"com.atlassian.jira.plugin.system.customfieldtypes:userpicker","comparison":"EMPTY","compareValue":null},"children":[],"conditions":[],"connectionId":null},{"id":"205846194","component":"ACTION","parentId":"205846192","conditionParentId":null,"schemaVersion":10,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"QA Assignee"},"fieldType":"com.atlassian.jira.plugin.system.customfieldtypes:userpicker","type":"SET","value":{"type":"COPY","value":"parent"}}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null},{"id":"205846195","component":"CONDITION","parentId":"205846192","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"ID","value":"assignee"},"selectedFieldType":"assignee","comparison":"EMPTY","compareValue":null},"children":[],"conditions":[],"connectionId":null},{"id":"205846196","component":"ACTION","parentId":"205846192","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.assign","value":{"assignType":"SPECIFY_USER","smartValue":null,"itsmOpsOncall":null,"jql":null,"issueToCopy":null,"fieldToCopy":null,"listAssignMethod":null,"assignee":{"type":"COPY","value":"parent"},"restrictedToGroup":null,"group":null,"role":null,"excludedUsers":[],"userList":[]},"children":[],"conditions":[],"connectionId":null},{"id":"205846197","component":"CONDITION","parentId":"205846192","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"ID","value":"status"},"selectedFieldType":"status","comparison":"ONE_OF","compareValue":{"type":"NAME","modifier":null,"value":"[\"To Do\"]","multiValue":true,"source":null}},"children":[],"conditions":[],"connectionId":null},{"id":"205846198","component":"ACTION","parentId":"205846192","conditionParentId":null,"schemaVersion":10,"type":"jira.issue.transition","value":{"operations":[],"advancedFields":null,"sendNotifications":true,"destinationStatus":{"type":"NAME","value":"In Progress"},"transitionMatch":""},"children":[],"conditions":[],"connectionId":null}],"conditions":[],"connectionId":null}],"canOtherRuleTrigger":false,"notifyOnError":"FIRSTERROR","projects":[{"projectId":"11012","projectTypeKey":"software"}],"labels":[],"tags":[{"id":21422484,"tagType":"IS_RULE_UPDATED","tagValue":"true"}],"ruleScope":{"resources":["ari:cloud:jira:8617148b-b5bf-4af8-867f-878fecd139b8:project/11012"]},"writeAccessType":"UNRESTRICTED","collaborators":[]}]}
the rules are identical except that they are on different boards and check for different statuses. For both rules, the assignee populates, and the status update. But for the Second rule, the QA assignee never is populated, I try using fetching and still hitting the same issue. For both rules  the audit log reflects the status as succes
Rule that isn't working
BDBFD207-3FED-47AD-9159-AD5CB6210512.jpegrule that is work workingBDBFD207-3FED-47AD-9159-AD5CB6210512.jpegScreen Shot 2023-01-18 at 6.40.18 PM.png

1 answer

1 accepted

2 votes
Answer accepted
Nino Garcia January 19, 2023

Figured this out is because one of the project is a company-managed project while the other is a team-managed project. The  automation in team-managed project  does not support custom user fields along with other automation that company manged project support.

 

https://support.atlassian.com/cloud-automation/docs/limitations-in-team-managed-projects-for-automation-rules/

Kelly Arrey
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.
January 19, 2023

Glad you were able to figure it out! Thanks for the update, I'm sure this will be helpful to others.

Like Nino Garcia likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events