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

0 votes
Answer 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!


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


246 views 0 6
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