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
Accepted answer

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
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

413 views 0 3
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