groovy and locked fields

Timothy Harris April 15, 2015

I want to add a scripted post function on the create transition when using Service desk.

I want automatically add Request Participants based on a condition, i.e, the belong to a certain group.

However the "Request Participants" custom field is locked. Is it possible to get at locked custom fields with groovy? 

1 answer

1 accepted

0 votes
Answer accepted
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.
April 15, 2015

Have you tried? "Locked" just means that JIRA or the SD plugin manages the configuration of it, ie the associations between projects and issues, screens and whatnot.

I don't know the type that field expects, so can't really give you any sample code. It might be difficult, but it will certainly be possible one way or another. 

Timothy Harris April 15, 2015

Hi Jamie, Yes I tried and found out that I don't know the type :P So now I have to figure out how to get the type of a custom field in general I guess.

Suggest an answer

Log in or Sign up to answer