-
Notifications
You must be signed in to change notification settings - Fork 1
Creating a Jira Automation to automatically update "Story points" when "Story points median" or "Confidence" changes
Once teams have established plans, they still want to be able to adjust their epic's "Story points" by changing "Story points median" and "confidence" without having to rerun the autoscheduler.
This is possible with a Jira Automation. This will guide you through creating the automation.
There are three steps to get it working:
- Identifying your custom field ids
- Import the automation rule
- Adjust the rule to match your fields
At the end of this page you will find:
- Customizing
- Troubleshooting
Jira automations reference custom fields by their IDs, not their name. So if you created custom fields for "Story points median" and "Story points confidence", you will need to find their field id.
The best way to do this is to:
- Go to
Issues
configuration - Click
Custom fields
- Search for your custom fields.
Once you find your custom field, open the ...
menu and click Edit details
:
The URL will have the id. For example, this instance's "Story points median" field id is 10070
:
Repeat this process for both the median and confidence custom fields.
The easiest way to create the automation is to download the following automation and upload it to Jira.
First, click the following link to download the Adjust Story Points
automation rule:
automation-rule-20860138-202408010246.json
Next, in your System
settings, find the Global Automation
page:
Click the Import rules
button within the ...
menu:
Drag and drop or click the button to upload the automation:
Check the Adjust Story Points
rule. Optionally limit it to specific projects.
The rule needs to be edited to work in your Jira instance. Specifically, it needs to be updated with your custom field ids.
To edit the rule, click the Adjust Story Points"=
link:
Find the custom field identifiers by clicking the Then: Send web request
action and locating the Custom data
textbox:
Replace the existing custom field numbers (customfield_10070
and customfield_10069
) with your custom field numbers. The JSON / mustache code looks like:
{
"storyPointsMedian": {{issue.fields.customfield_10070}},
"storyPointsConfidence": {{issue.fields.customfield_10069}},
"riskThreshold": 80
}
Finally, click Update
and toggle
on the automation.
Checkout the endpoint documentation for additional customization possibilities.
You can test the request on its own within Jira by:
- Clicking on the
Send web request
action - Clicking the
Validate your web request configuration
details control - Entering the key of an issue that has the median and confidence fields specified.
- Clicking
Validate
and exploring the response.