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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

533 views 3 19
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