Forums

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

Is this possible to store Sprint start/end date in custom filed and show this on dashboard?

Kishore D
Contributor
July 6, 2022

Is this possible to store Sprint start/end date of jira story  in  one custom filed and show this custom field  on dashboard?

1 answer

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
July 6, 2022

Hi @Kishore D ,

techically you can do that using a calculated scripted field provided by ScriptRunner plugin.

You need to write some code that, based on issue, retrieve the associated sprint.

Please let me know if you have chance to use it and if you need help.

Fabio

Kishore D
Contributor
July 6, 2022

Thanks Fabio! for Quick response.

Yes i need help in that area. I am not good in scripted fields. if you can help me with code it would be great!!

Kishore D
Contributor
July 7, 2022

Hi @Fabio Racobaldo _Catworkx_ ,

I found below from other link and it worked. Below is for  end date. similar way i am looking for sprint start date. i replace  "endDate" with "startDate". But its returning as sprint started 4days ago instead of date 04/july/2022. should i do any more change to get start date. for sprint end date it works like charm. 

import com.atlassian.jira.component.ComponentAccessor

def customFieldManager = ComponentAccessor.getCustomFieldManager()
def sprint = customFieldManager.getCustomFieldObjectByName("Sprint")

//End Date
Date endDate = issue.getCustomFieldValue(sprint)?.endDate?.first()?.toDate()

Suggest an answer

Log in or Sign up to answer