Forums

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

how to make a custom field that should be visible to a particular role while creating a ticket.

Bhadram
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!
October 5, 2023

In the create screen take a custom field that should be visible to a particular role while creating a ticket.

2 answers

2 accepted

1 vote
Answer accepted
Anna Hryhoruk _Appfire_
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.
October 6, 2023

Hello @Bhadram ,

In addition to what Giovanni wrote, if you are considering some applications, I would also recommend you to pay attention to Power Scripts automation app. It has so-called Live Fields functionality that can solve your issue. Please check this link for more info about Live Fields concept and a particular example that matches your one: Hide fields for users with no developer role 

Best regards,
Anna

0 votes
Answer accepted
Giovanni Melai
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.
October 6, 2023

Hi @Bhadram,

you can't do that out of the box. If you want to do something without installing any add-on, you can do something like this:

  1. Don't add the field you want to hide in the Create Screen or in the Edit Screen. Add it only to the View Screen.
  2. Create a Transition from status "Any status" to status "Itself". You can name it something like "Edit Field X"
  3. Configure the transition with a Screen with only the field you want to make editable by the specific role
  4. Add a Condition "User Is In Any Project Role" to the transition and select the role you want to use. 

In this way, the field will not be available at creation, but once the issue is created the users in the role you define will be able to see the transition "Edit Field X" and will be able to edit it through it, then the field will be visible to everyone in the issue view.  

This is the only way I can think about without add-ons. If you are keen on installing one, I can suggest you use Scriptrunner and in particular the Behaviour functionality with which you can do exactly what you have in mind, but you need some scripting/development experience.

Another add-on that should help in this case is Field Security for Jira, I never used it but it seems good and easier than Scriptunner. 

I hope this helps

Suggest an answer

Log in or Sign up to answer