groovy and locked fields

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 vote

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. 

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 14 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

38 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you