Forums

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

how can we disable the edit option for custom fields in jira view screen for a particular project

Gnana Sekhar Reddy January 20, 2023

Hello Team,

I have a issue in my project. After updating an issue in view screen few custom fields are getting edit option. I want to disable those custom fields only in my project. Can anyone help me out in this.

 

Note: We have an option(Enabling the Incline button in System edit settings) to do that. But it is effecting on all the projects.

Screenshot 2023-01-20 192320.jpg

2 answers

2 votes
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2023

Hi @Gnana Sekhar Reddy - To keep these fields visible, but not editable, you'll need to add a new screen action to your screen scheme.  By default, issue types are configured to use the same screen for create/edit/view.  So, you'd take these steps:

  1. It appears your project is sharing the same screen configuration with other projects.  This means you'll need to take extra steps to create unique screens, screen scheme, and issue type screen scheme.
  2. Determine whether you need two or three screens.  Assuming you want these fields to be visible, but not editable, that tells me that a person or automation at least populates these fields on issue creation.  So, it may be possible to share the same screen for Create/View actions and another for Edit.

Now that the strategy is identified, you'll take this action:

  1. Navigate to Settings >> Issues >> Screens and locate the existing screen.  Make a couple copies of it.  I recommend a naming convention of Project Key - Issue Type - Action.  For example, 
    1. TEST - Story - Create/View
    2. TEST - Story - Edit
  2. Navigate to Screen Schemes in the Left Navigation and create a new screen scheme.  I use the naming structure of Project Key - Issue Type
    1. Test - Story
  3. Assign the screens created in step 1 to your new screen scheme with the applicable actions
  4. Navigate to Issue Type Screen Schemes in the Left Navigation and create a new issue type screen scheme.  I use the same naming structure as above of Project Key - Issue Type
  5. Add the screen scheme created in steps 2 & 3 and associate with the desired issue type
  6. Navigate to Project Settings >> Summary and then follow the link to the existing Issue Type Screen Scheme.  Change the issue type screen scheme to the one created in steps 4 & 5.
0 votes
Kristján Geir Mathiesen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2023 edited

Hi @Gnana Sekhar Reddy 

If I understand correctly, you want to prevent users from changing values in certain custom fields. This can be done by having 3 screens:

  1. Create
  2. Edit
  3. View

Place all relevant fields on the Create screen. Removing the fields you do not want users to change from the Edit screen

If you want certain people to be able to edit these fields, then place these fields on a transition screen, create a loop transition (i.e. goes back to the same status) with the newly created transition screen, and restrict who can see this loop transition.

Only use these 3 screens for that particular project you want this restrictive function in.

HTH,
KGM

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events