Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Script Field - Script not working after migration

Recently migrated to Jira Datacenter version from Jira Server.  On Jira Server Adaptavist Scriptrunner was populating a scripted field (Sum of all Story Points on Story Issue for all Epics using the epic story link) using the script below.   Since installing Adaptavist Scriptrunner on Jira Datacenter it is not working.  Any suggestions?


import com.atlassian.jira.component.ComponentAccessor

def doneNames = ["START WORK"]
def issueLinkManager = ComponentAccessor.getIssueLinkManager()
def totalSP = 0.0
enableCache = {-> false}

def customField1 = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Story Points")

issueLinkManager.getOutwardLinks( { == "Epic-Story Link"
}.findAll {
!( in doneNames)
}.each {
totalSP += it.destinationObject.getCustomFieldValue(customField1) as Double ?: 0.0

return totalSP as Double

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

228 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you