Can't get "Set Field Value to constant or Groovy expression" to work

We have installed a paid version of JMWE - 3.1.0 - running against JIRA 5.2.11

I can get "Copy Value From Field to Field" to work, but not "Set Field Value to constant or Groovy expression". I am trying to set Original Estimate and have tried entering a number 36000, "4d" and '4d' as hardcoded values to start with (after a Groovy script did nothing)

We are using a hosted service, is it possible the Groovy is missing on the server, resulting in this problem?

Thank you for any help you can give.

2 answers

1 accepted

Resolved it - part of it was the type, part was the need to use 'issueObject' in place of 'issue' as the latter is a wrapper.

Did you have a look at the atlassian-jira.log? You might find ERRORs related to the function.

The Original Estimate field is expecting a Long value, so you cannot pass it as a constant. You need to use a Groovy expression, such as "new Long(1000)".

Thank You - that was a large part of the problem!

Make It A Great Day And A Better Tomorrow!

//Sten

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

128 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you