Script runner fields not showing in default issue screen

Hello, when i create a basic scripted field it does not show up in any of the screens i assigned it to.

When I use the admin tool "wheres my fields" it says my field should be displayed and its not.

2 answers

1 accepted

2 votes

Are you sure your field is generating some output? 

Yeah im pretty sure its not even displaying on the screen, i didnt even add any script yet I just want the field to show up first before i can move to the next step

Ah, well, Jira hides empty fields. You might want to put in a script which just outputs a fixed string or something.

humm. I was expecting an empty test filed to show up in my bug entry screen, then I would add a simple script to the field to validate the user entered text in that field, are you suggesting the script runner cannot do that?

I think you've misunderstood what scripted fields do. They display information based on other data. Not ask the user for data. For your needs, you don't need a scripted field, because you want to enter data into it. I'd add a standard text custom field, then you need to use a "validator" to check what the users put into it later. (You can use the script runner to create customised validators)

Nic is correct... if the output from the script is null, or you have no script, no field will be displayed. The first step should be adding a script that just contains "foo bar" or something (including the quotes). This should then display on the screen. Then you add your business logic.

Thanks! with Nics advise i was able to resolve my issue. It appears you need to add a validator to your JIRA workflow in order for the field validation to show up.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

361 views 0 6
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