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

Scriptrunner Cloud return system fields

Hello all, can anyone point me in the right direction to return system fields such as summary and description in a Scriptrunner cloud script? I can get custom fields easily enough using this:

def issueKey = "SD-44"
def issue = get('/rest/api/2/issue/' + issueKey)
.header('Content-Type', 'application/json')

def fields = issue.fields as Map

def product = get("/rest/api/2/field")
.find {
(it as Map).name == 'Product'
} as Map

def productValue = (fields[] as Map)?.value

return "The value of ${} custom field is: ${productValue}"

however for system fields I have not been able to figure out how to return the values.

Thanks you in advance for your time.


1 answer

1 accepted

0 votes
Answer accepted

well this was way easier than i imagined, lol.

def summary = fields.summary did the trick

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

157 views 0 4
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