Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Knowing the field names to assign values with groovy script runner

Ramiro Pointis
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.
March 25, 2012

Jamie, from where I can take the field values? For example, when the issue is cloned, the timeestimated should not be cloned. So, It should be like:

issue.timeOriginalEstimate = ''

issue.timeoriginalEstimate = ''

issue.timeoriginalestimate = ''

Are this names related to the column names in database?

2 answers

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
March 25, 2012

Look at IssueFieldConstants class. http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/IssueFieldConstants.html

not many people will look at answered questions

I agree!

0 votes
Ramiro Pointis
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.
March 25, 2012

Jamie response:

issue.originalEstimate = 0 // IIRC

They may be related to the column names but the javadoc is the place to look.

Ramiro Pointis
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.
March 25, 2012

where I can find this javadoc? Because, for example, the tags and the issue security are not beign cloned.

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.
March 25, 2012

http://docs.atlassian.com/software/jira/docs/api/latest/com/atlassian/jira/issue/MutableIssue.html

Issue security is a known issue that will be fixed soon: https://studio.plugins.atlassian.com/browse/GRV-94

However it will only work if the target project shares the same issue security scheme.

Labels, you should be able to use get and setLabels(), I think the source and target issue are both available.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events