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
Community Members
Community Events
Community Groups

Show/Hide Fields on ITSM Request screen?


I am having trouble wrapping my head around this.  The ITSM Request screen is made BEFORE an issue exists.  So I think when I am calling field values, they are always showing as null.  Is this even possible?

I have tried many different things.  But currently I am trying to make a behavior and this is more or less what I am trying.  If I run this as an initializer, it ALWAYS hides the Description field.  I believe this is because the getFieldByID doesnt exist yet on the ITSM request screen?

(Sorry for the lack of a code block, not sure how to do that here)

def selectListField = getFieldById("Exception Template")
def selectListValue = selectListField.value
def textField = getFieldByName("Description")

if (selectListValue == null) {
} else {

Hoping someone can help guide me!

1 answer

Figured it out! I needed the customfield nameID, not it's full name.  This has some parts added as I changed the functionality from show/head to readonly true/false


def selectListField = getFieldById("customfield_12900")
def selectListValue = selectListField.value
def textField = getFieldByName("Description")
def text = "PreMade Text"
if (selectListValue == "Specific Selector Text Here") {
} else {
textField.setFormValue(" ")

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

64 views 1 3
Read article

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