Forums

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

Story Point Capture original Story Point value in Custom field

Brian Taylor
Contributor
February 22, 2019

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. 

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
February 22, 2019

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.

Brian Taylor
Contributor
February 22, 2019

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 

Aron Gombas _Midori_
Community Champion
February 25, 2019

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events