As a scrummaster, I would like a custom field on my epics to tell me the earliest sprint work in that epic is scheduled for because I would like to know when this epic is currently slated to begin.
We name our sprints using the convention "[Team Name] [Program Increment].[Sprint Number]", and so theoretically I should be able to write a script that:
1) Looks at all issues in the sprint with a scheduled sprint
2) Retrieves the name of each sprint
3) Uses regex to parse the string sprint name for the program increment.sprint number
4) Returns the smallest value found.
I already have a custom field which sums the story points in stories in an epic, so I thought it would be relatively simple however whereas:
def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Story Size")
issueLink.destinationObject.getCustomFieldValue(customField)
Gets me a value I can turn into a double and sum and whatnot, the same on the sprint field:
CustomField customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_10252")
issueLink.destinationObject.getCustomFieldValue(customField)
Seems to be returning a null field.
Is there a different or better mechanism I should be using to get the names of sprints for issues in an epic?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.