Forums

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

Story point count to epic

Lotte Pijnenburg January 17, 2023

Hi,

I got some issues when setting up the automation for counting story points estimated in stories and tasks and viewing them in epics. 

The custom field I use is 'Story point estimate' or customfield_10016 .
This is the code I wrote in the 'edit issue field' advances section: 

{
   "fields": {
      "timetracking": {
         "customfield_10016" : "{{lookupIssues.customfield_10016.sum.divide(60)}}"
      }
   }
}

I already tried replacing the "customfield_10016" with "Story point estimate" but that gives errors too. (error: Unrecognized field "customfield_10016")

 

Anyone any ideas? Thanks! 

 

Gr,
Lotte

1 answer

0 votes
Trudy Claspill
Community Champion
January 17, 2023

Hello @Lotte Pijnenburg 

Welcome to the Atlassian community!

Are you working with a Team Managed project or a Company Managed project? That information will be shown at the bottom of the navigation pane on the left.

The built in custom field "Story points estimate" is used specifically for Team Managed projects. If you are working with a Company Managed project you should not be using that field.

I also see that you are trying to set the field as a child of the "timetracking" field. Story points are not part of the "timetracking" field, so that is another problem with your automation.

I also see that you are trying to sum up the field and then divide it by 60. Why?

This error message usually indicates that the specified field is not part of the issue you are trying to update. The method for correcting that depends on whether you are working with a Team Managed or Company Managed project.

Please show us the entire automation rule as sometimes such error are related to the context of the issue being referenced, which is a factor of how the rule is constructed.

 

Here is a post I answered with details of a rule for summing story points on child issues up to the parent Epic in a Company Managed project. You would need to update the Condition after the Trigger if you have multiple types of issues that can be children of Epics.

https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-Sum-up-story-points-when-the-field-value-changes/qaq-p/2120219#U2120256

Lotte Pijnenburg January 18, 2023

Thank you for your reaction! 

  • I run a team-managed project; 
  • I copied the automation from a colleague but seems that because he is using other fields and time estimations that it won't fit for my project since we use story points (or story points estimate - doesn't matter, we need to get started so if one of those works, we'll take that haha)
  • I tried to implement the automation from your URL, it works according to the logs but I don't see any field adjusted in my epic... 
  • I included all the steps from my automationAudit log .pngepic story fields empty.pngStep 1.pngStep 2.pngStep 3.pngStep 4.pngStep 5.pngStep 6.pngStep 7.pngStory - epic relation.png
Lotte Pijnenburg January 18, 2023

I see the problem, I didn't use a capital letter somewhere. It now shows a value in my epic for story points field. But... It only shows '0' at the story points field in my Epic (also when I change the story points field in a task or story). Automation flow shows successfully tho

Lotte Pijnenburg January 18, 2023

Hi, I already found the 'solution' --> epic link should be parent :) 

Trudy Claspill
Community Champion
January 18, 2023

Great! I'm glad you figured it out!

If you are using a Team Managed project, though, you should be using the Story point estimate field in your Epic, Story, and Task issues. The reports that use story points and are available for a Team Managed project will be based on the data only for the Story point estimate field and can't be changed to reference another field.

Lotte Pijnenburg January 19, 2023

Thankss!!

Suggest an answer

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

Atlassian Community Events