Groovy runner - "created" field

Eldad Farkash November 24, 2014

Hi,

When getting the "created" field value from an issue i get a Boolean value

for example, running:

"return issue.created"

results with:

"true"

 

for other dateTime fields i get the correct dateTime answer ("updated" for example).

 

Thanks

1 answer

0 votes
JamieA
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.
November 24, 2014

Use "issue.getCreated()".

When you use property syntax, it chooses the method isCreated(), which returns a boolean. This is a corner-case... and the only one I can think of.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events