The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Target custom scripted field name or id information?

Oleksii Gnatkevych
June 5, 2014

I intended to use the same single groovy script for several scripted custom fields, expecting the script to 'know' somehow for which field it was called and do its calculations based on this information. Very much like the unix program can have several names and behave differently depending on how it was called. But I could not find how to know this since all I see in bindings are componentManager, issue, context, log, out, and stuff like enableCache, getCustomFieldvalue, no anything that could lead to the custom field ID being evaluated.

Jamie, how can I find it?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
June 5, 2014

Doesn't seem to be in the binding but I agree it should be.

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 Champions.
June 7, 2014

I created https://jamieechlin.atlassian.net/browse/GRV-457, it will be in the next release.