I have a work item called a Change Request and I want to sum the number of them and display it on a custom field.
Not all child issues, just the specific type.
Hello @maggie.pople
You can accomplish that with an Automation Rule. Are you familiar with Automation Rules?
https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/
You could set up a rule that uses a Scheduled trigger with a JQL statement to select the parent issues you want to review.
Then use a Lookup Issues action with a JQL statement to find all the child issues of the specified type under that parent.
Then use the Edit Work Item action to set the number field to the results of the Lookup Issues action using the smart value
{{lookupIssues.size|0}}
If you are unfamiliar with Automation Rules you can find more information:
- in the documentation links I provided above
- in the Atlassian Community Learning center (link at the top of the Community pages)
- by using the Template rules that are available through the Automation feature directly in Jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.