Forums

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

How to Make Fields Read-Only on the Create Screen in Jira DC

Insha Nisar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 12, 2024

 

Hello Jira Community,

I am currently working with Jira Data Center (Jira DC) and I have a requirement to make certain fields read-only on the issue creation screen. I would appreciate any guidance on how to achieve this.

Details:

While Epic creation

Both the Enabler and Epic category fields as READ ONLY

we need these fields to be as READ ONLY. 

Questions:

1. What is the best approach to make fields read-only on the create issue screen in Jira DC?

2. Are there any built-in features or configurations in Jira DC that support this functionality?

3. If plugins or add-ons are required, could you please recommend reliable ones and provide a brief overview of how to configure them for this purpose?

4. Are there any potential drawbacks or limitations to making fields read-only on the create screen that I should be aware of?

Any examples, detailed steps, or best practices would be greatly appreciated.

Thank you in advance for your help!

Best regards,  
Insha Nisar

2 answers

0 votes
Srikanth Gowda B S July 12, 2024

Hi @Insha Nisar 

 

By using Plugin we can achieve this!!

Plugin : Script Runner - https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=datacenter&tab=overview

With the usage of  Script Runner Behavior functionality we can set fields as read only in create screen.

Example Script: def field = getFieldById(getFieldChanged())
field.setReadOnly(true)

 

0 votes
John Funk
Community Champion
July 12, 2024

Hi Insha - Welcome to the Atlassian Community!

What is the purpose of this? A read only field that doesn't allow any value to be entered on a Create screen? Sorry, but that doesn't make any sense to me.

Ryan Sandan August 2, 2024

I'm trying to create this right now. For my purpose, it's to create a sort of instruction for the user to go through the issue creation. It could be a hyperlink to a SharePoint document. So my read only field would look like:

 

"[Please click here for more instructions|https://example.com]"

 

Would you possibly know how to do this? I created a read only field and associated to a screen where it only applies in the Create issue function. I associated that to the screen scheme and field configurations but it's not showing up.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer