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

Sten Sundelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2013

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
Sten Sundelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2013

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.

0 votes
David _old account_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 10, 2013

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)".

Sten Sundelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2013

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
TAGS
AUG Leaders

Atlassian Community Events