I am looking for a way to capture the first time a value is placed in the Story Point field and capture that into a custom field names Original Story Point
The issues are created without a story point value and the value is set during project grooming sessions.
I know I can use a scripted field but trying to find example code that may be able to help capture this data.
Basically what you need is an automation rule that copies the "Story Point" field's value to "Original Story Point" when it is first set.
I think you can do that without any programming using the Automation for Jira app.
Aron - Thanks for the feedback - we do not have this add-on and looking to use Scriptrunner and possible a scripted field to capture the data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In that case, you have to implement a so-called listener (that intercepts field value changes) with ScriptRunner.
The pseudo code would something like this:
if(field.name == "Story Points") {
if((oldValue == null) && (newValue != null)) {
field["Original Story Points"] = newValue
}
}
This is obviously not a valid Groovy script, I just use this to illustrate the logic.
I'm quite sure you can turn this to Groovy after looking at the ScriptRunner user manual.
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.