JIRA doesn't allow you to lock fields. The work around is to put the field on a transition screen for a transition with a condition of a particular project role. Then put the field ONLY on the view screen. Put the transition anywhere you want to be able to change the field.
Would it be OK to explain this in a little more detail please?
I am creating a ticketing system that will collect various types of information based on the state the ticket is in. However I want to only allow some fields to be available for filling in once a specific transition has been made into a new state.
I hope this makes sense - I think your solution is what I am looking for but I don't understand it 100%
I don't know how to make it clearer.
Only put the field on the transition screen where you want it filled in
Restrict the transition to user with a particular project role
Only put the field on the View screen, not the edit or create screen. If you only have one screen it is used for create, edit, and view. You need to create at least a view screen. I like to have all three, The create screen for only fields needed to create the issue, the edit screen for users working the issue, and the view screen that includes all the fields used by the issue including the ones only on transition screens.
As @Thorsten Letschert _Decadis AG_ said you may want it always available
Read the documentation for how to limit transitions or make it a global (reflexive) one.
i was searching for a solution, too.
When I add a custom field i have the advanced option and can use Custom Text Field (read only) I guess it comes whit the free Version of the Jira Toolkit.
With this option you get a read only permission Text field which can be edited by for example Scriptrunn.
Hope it helps its much easier, than using the above mentioned Workaround.
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