I have a custom field which is hidden in the screen and i have to update that field through script runner.
Hi Sneha,
Thank you for your question.
I can confirm that to set a field which is not on the screen inside of ScriptRunner for Jira Cloud that you need to specify a query string paramater to override screen security and to allow the rest call to set a field which is not on the screen.
I can confirm that we have an example script inside of the documentation page located here which shows how you can use the .queryString("overrideScreenSecurity", Boolean.TRUE) paramter to set a field which is on screen.
Please note that when running this using paramater that your script must be run as the ScriptRunner Add-On User as only this user is allowed to set fields which are not pressent on the issue screens.
If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.
Regards,
Kristian
@Kristian Walker _Adaptavist_ but how can i retrieve the updated field content? When I try it, his value is None
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.