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

How get value from text field? Edited

Hi, i want get value from text field and set value in other field but in log i see error 

2020-02-08 21:57:22,402 http-8080-5 ERROR admin 1377x821x1 ljf71i /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Something went wrong with method run in class
java.lang.NumberFormatException: For input string: "MYF-1"  

This is my code 

def cutomField=getFieldById("customfield_10000");
String value=(String)cutomField.getValue();
def sum=getFieldById("summary");

maybe someone write how get rid of this error. Thanks

Version my jira 5.0.3



3 answers

1 accepted

0 votes
Answer accepted

If I write this, then everything works fine

def cutomField=getFieldById("customfield_10000");
String value=(String)cutomField.getFormValue();
def sum=getFieldById("summary");
0 votes
Thomas Deiler Community Leader Feb 08, 2020

Dear @daymonTwo ,

it seems that you question is better placed at

Could you be so kind to reopen it there?

So long


Am not sure what fields you are updating. But from the error it shows that the field is supposed to be Number but you are entering a string. 

If "MYF-1" is an issue, get issue ID and use that. 

Suggest an answer

Log in or Sign up to answer

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