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.
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
And keep in mind that branching for Parent will NOT add estimations to the Epic. Epic is not a parent of standard issue types.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi I only need to add the story points to story based on the time estimation of the sub tasks. not to the epic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also I have tried the same thing as per the above link and still it is not updating the parent values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the example I gave you (exactly as it is) and provide a screenshot of your audit log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gayan Kalinga from the audit log I see that the issue did NOT met the specified condition. So there are two possibilities:
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.