Custom field Text Field (Read only) can be edited by agent.

Nick Hassell
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 17, 2020

In a Jira Service Desk project I have created a custom field of type Text Field (Read only).  I update this field by means of a ScriptRunner script that runs when an issue is updated.

I am displaying the custom field on an Edit Issue screen, but the field can be edited (as a string).

If this field is meant to be read only, why is it possible to edit it?

How can I prevent this?

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 20, 2020

Hi Nick,

Thank you for your response.

I can confirm fields shown inside of Jira Service Desk are only shown read only in the Customer Portal and this means they will not be shown as Read Only when displayed on the edit screen in the standard Jira view.

This means you will need to remove the field from the Edit Screen as this behavior is the default behavior of Jira Cloud and that this behavior is no caused by ScriptRunner for Jira Cloud.

Also I can confirm that the plugin cannot make fields read only like it can in the server version can with the Behaviors feature.

The reason we are unable to provide this functionality is due to the restricted functionality and API's which Atlassian provide inside JIRA Cloud, due to the fact that Atlassian only provide a Rest API in Jira Cloud and not the same Java API that the server version contains.

You can see more detailed information on the differences between ScriptRunner for JIRA Cloud and ScriptRunner for JIRA Server inside of the documentation page located here.

I hope this information helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer