How works Hidden field in issue creation


I don't understand how works hidden field when you create a new issue on Jira Service Desk.

We have a desk for our customers to create issues. The have for exemple, to select the computer which has a problem, and then there is an automatic update of 10 fields, like the name of the computer, the user associated, phone number, and also, some informations than must be read-only, like our intervention delay, the contract... All of these are stored in a database.

I don't want our customers to see those particular fields, they must be hidden for them, BUT, filled during the automatic update, and then stored during the creation of the issue. If I hide a field, it seems to be in read-only, as it is empty each time.

Is there a way to store variable in hidden fields?

1 answer

Hey Deniel,

We can do this, if we have Adaptavist Script Runner Plugin Installed.


Lets say you want to hide field B and FieldC based on the value of Field A.


Add a mappping to the Issue Type,Project and then add a field A 


In this example, its OS



Code to hide OSVersion Field based on OS field value

import com.atlassian.jira.component.ComponentAccessor
def OSVersionField = getFieldByName("OS Version")
def OSField =getFieldById(getFieldChanged())
def selectedOption = OSField.getValue() as String
if ((selectedOption == null))
else if ((selectedOption == "All"))
else if ((selectedOption == "N/A"))


Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

418 views 6 16
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot