Forums

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

Automation Rule does not Update the Field after successfully Running

Gayan Kalinga January 6, 2023

 

I am running a rule to update the story points of parent task when the sub task time estimations are update. 

Rules are running successfully in the audit, but the story points are not updated in the parent task. Screenshot 2023-01-06 at 10.13.03 PM.pngScreenshot 2023-01-06 at 10.13.07 PM.pngScreenshot 2023-01-06 at 10.13.14 PM.pngScreenshot 2023-01-06 at 10.13.24 PM.pngScreenshot 2023-01-06 at 10.14.41 PM.pngScreenshot 2023-01-06 at 10.16.55 PM.png

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
January 6, 2023

Hi @Gayan Kalinga and welcome to the community,

Please take a look at this rule from automation playground https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/1381500/26460304

Alex Koxaras -Relational-
Community Champion
January 6, 2023

And keep in mind that branching for Parent will NOT add estimations to the Epic. Epic is not a parent of standard issue types.

Gayan Kalinga January 6, 2023

Hi I only need to add the story points to story based on the time estimation of the sub tasks. not to the epic.

Gayan Kalinga January 6, 2023

Also I have tried the same thing as per the above link and still it is not updating the parent values.

Alex Koxaras -Relational-
Community Champion
January 6, 2023

Try the example I gave you (exactly as it is) and provide a screenshot of your audit log.

Gayan Kalinga January 6, 2023

Screenshot 2023-01-06 at 10.36.55 PM.pngScreenshot 2023-01-06 at 10.36.37 PM.pngScreenshot 2023-01-06 at 10.36.49 PM.png

 

Created the rules as it is & publish all the changes

Create new story & create new sub task

Add story points 5 to sub task

check the parent story 

 

but the result is same

Gayan Kalinga January 6, 2023

However parent Story Points updated to 0 from none i think

Alex Koxaras -Relational-
Community Champion
January 6, 2023

@Gayan Kalinga from the audit log I see that the issue did NOT met the specified condition. So there are two possibilities:

  • You didn't edit a subtask
  • You have more than one subtask, possibly with a different name 

And if you keep pasting cropped images, I can't make out which image belongs to which issue. What are issues 808 and 809? What values do they have?

Gayan Kalinga January 6, 2023

last one is because i tried to edit the parent so 808 is the parent. but before that one is when i edited the sub task

Gayan Kalinga January 6, 2023

Can this be a permission issue of some kind ?, Also i will have multiple sub tasks under one story but not in the test run

Alex Koxaras -Relational-
Community Champion
January 6, 2023

Can you try importing this rule on your project and try again?

{"cloud":true,"rules":[{"id":9751639,"clientKey":"392b6b84-aff8-31f3-bbcf-d4dc4de7f1a3","name":"Sum up story points when the field value changes","state":"ENABLED","description":"","authorAccountId":"5f9fb7c1c2e5390077abf628","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1673025254138,"updated":1673025254138,"trigger":{"id":"201345511","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":2,"type":"jira.issue.field.changed","value":{"changeType":"ANY_CHANGE","fields":[{"value":"Story Points","type":"fieldName"}],"actions":[]},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"201345512","component":"CONDITION","parentId":null,"conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"ID","value":"issuetype"},"selectedFieldType":"issuetype","comparison":"EQUALS","compareValue":{"type":"ID","modifier":null,"value":"10003","multiValue":false,"source":null}},"children":[],"conditions":[],"connectionId":null},{"id":"201345513","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"parent","jql":"","linkTypes":[],"onlyUpdatedIssues":false,"similarityLimit":40,"compareValue":0},"children":[{"id":"201345514","component":"ACTION","parentId":"201345513","conditionParentId":null,"schemaVersion":10,"type":"jira.issue.edit","value":{"operations":[{"field":{"type":"NAME","value":"Story Points"},"fieldType":"com.atlassian.jira.plugin.system.customfieldtypes:float","type":"SET","value":"{{issue.subtasks.Story Points.sum}}"}],"advancedFields":null,"sendNotifications":true},"children":[],"conditions":[],"connectionId":null}],"conditions":[],"connectionId":null}],"canOtherRuleTrigger":false,"notifyOnError":"FIRSTERROR","projects":[{"projectId":"10005","projectTypeKey":"software"}],"labels":[],"tags":[],"ruleScope":{"resources":["ari:cloud:jira:f1b53191-2545-46a7-841f-975e03eb0b9f:project/10005"]},"writeAccessType":"UNRESTRICTED","collaborators":[]}]}

Can't really say for sure if it's a restriction problem. Most likely not.

Gayan Kalinga January 6, 2023

How can I import this ?

Suggest an answer

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

Atlassian Community Events