Forums

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

Hide fields on the create screen

simarpreet singh
Contributor
May 26, 2020

Hi team,

There are lot of already posted queries on this, but still not got the exact answer.

I want to hide a number of fields on my create screen as soon a user selects a particular option from the dropdown field. My question:

  1. Is it possible with any inbuilt post function or validator?
  2. If not, any code to use, and where to put that code.

And lastly, I'm not using behaviours. So if you can help me through scriptrunner validator with groovy script or custom script, that can be helpful.

Thanks,

Simar

1 answer

0 votes
Nic Brough -Adaptavist-
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.
May 26, 2020

The exact answer is "no".

You can't do this natively with Jira.  It has no show/hide functionality in it. 

You have ruled out Behaviours, which is the only generalised way to add it to Jira, and there are a couple of other apps that provide fields that do things a bit like that.  But for plain Jira, it is a simple "no".

To expand on a couple of things:

  • Validators run after a user tries to commit data, they can't influence what is on a create screen because they happen after the user has finished with the screen
  • Post-functions run after your user has committed to a change, and after validation
  • You could try to inject javascript, globally, into the announcement banner, but it'll be long and complex and hard to maintain.

Suggest an answer

Log in or Sign up to answer