Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,834
Community Members
 
Community Events
165
Community Groups

Prevent users to edit field in a specific status

Hello all, I have read a couple of post and wasn´t able to find a way to achieve what I want.

I want that if the status of a ticket is in "working",  there is no way to  edit one of the custom fields .  

2 answers

1 accepted

2 votes
Answer accepted
Alex Koxaras Community Leader Nov 20, 2021

Hi guillermo.casco@grey.com 

Out of the box, you can't achieve that, since Jira do not provide field level security and editability per se. There are solutions and workaround which I describe below:

  • Use a listener (scriptrunner or JMWE or similar app) to prevent the field from changing value to that specific status
  • Completely prevent the issue of being edited on the specific status, by using workflow properties inside your workflow (jira.issue.editable).
  • Remove that field from the issue's edit view completely and add a self transition to edit that specific field (use a transition screen with this field in it) to all statuses except the Working status.

Let me know if any of the above solution would be suitable for you.

Hello @Alex Koxaras quite interested in option 1 or 3.  not sure how to do it , do you have an example or something? thank you

Option 2 I think I know how..thing is that ALL fields will be "non editable".

Regarding option 3 not quite sure the aproach there. 

Alex Koxaras Community Leader Nov 22, 2021

Let's examine the 3rd case which is doable without any additional app:

First of all you have to get rid of that specific field from the edit screen. With that said the user will be able to enter in upon issue creation and only view it within the new issue view (clicking it, will not go into edit mode).

STEP 1: To do that I would go to project settings > screens and click the individual screens to edit them and to make sure that this field will be only visible on the create and view issue operation:

step01.png

 

step01a.png

In that point you would want to try open an issue of that specific issue type and try to see if that field is editable (it shouldn't be).

STEP 2: Go to cog > issues > screens > add screen. Give it a name and edit it so as to add your field to that screen:

step02a.png

step02b.png

STEP 3: Next step is to edit our workflow. Head on to project settings > workflows, and click that pencil icon of the specific issue type:

step02.png

 

  • Click diagram > add transition
  • From status: Any status
  • To status: itself
  • Name: Edit "YOUFIELDNAME"
  • Screen: Choose the screen you created in the previous step
  • Click Add

step03b.png

 

  • Click that transition and then click Conditions
    step03c.png
  • Click Add condition > Previous Status Condition > Add
  • Configure the condition like the image below, but choose your own status to which you don't want the users to edit this field
    step04d.png
  • Click update
  • Click Publish Draftstep043e.png

 

The results are shown below:

 

Initial status with the Edit Client transition visible.

Result01.png

 

Clicking it will popup the screen to edit it

result02.png

 

On the In Progress status the field is locked, since the Edit Client transition is not visible:

result03.png

 

 

BUt on the next status (or any other status) the transition will be available

result04.png

 

Hope it helps. Took about 25 minutes for this reply :D lol

Like # people like this

thank you very much  @Alex Koxaras! was able to do it now that way. 

Like Alex Koxaras likes this
1 vote

Feature request for the same please vote & watch for updates 😊

https://jira.atlassian.com/browse/JRACLOUD-78768

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you