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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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 update description field

Olga Videc Community Leader Jan 11, 2019

Hello, 

I'm a dummy for grovy programing just starting but can someone help me 

I would like to update issue's description filed using Scriptrunner, i know that description is not a custome filed.

def desc = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'description'}
issue.setCustomFieldValue(desc, 'my value')

 

2 answers

2 accepted

Olga Videc Community Leader Jan 11, 2019

Worked like a charm :D 

Thanks 

0 votes
Answer accepted
Tarun Sapra Community Leader Jan 11, 2019

Hello @Olga Videc

Since description is not a custom field thus you don't need to use customFieldManager.

Here's the detailed documentation with code samples as to how you should update the Jira issue fields.

https://developer.atlassian.com/server/jira/platform/performing-issue-operations/

Olga Videc Community Leader Jan 11, 2019

Same as Nic send, thanks a lot. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

89 views 1 12
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