Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

171 views 2 9
Read article

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