How to create a custom field to appear on Issue page

I have created a custom text field (ready only) under Administration --> Issues --> Custom Fields.

How do I add this to the issue page for one project? It does not need to appear on the Create Issue page (it can if necessary) but it does need to appear when viewing & editing an issue.

2 answers

1 accepted

0 votes
Ann Worley Atlassian Team Apr 04, 2017

You may specify on which screens the custom fields appear on the issues:

  1. Go to Administration>Issues>Custom Fields,
  2. Click the gear next to the custom field
  3. Choose screens
  4. Check the screens you want

The field appears on the issue screen for new issues but not issues that were already created. How can I add the field to current issues without going to Admin > Add Field for all issues?

Ann Worley Atlassian Team Apr 05, 2017

On my test instance the fields do appear on existing tickets that were created before the custom fields were applied. I wonder what we are doing differently?

Steven Behnke Community Champion Jun 15, 2017

They're trying to find empty fields on the view screen I'd suspect. 

That is correct. Once a value other than "none" has been selected for the field, it appeared on the view screen.

Steven Behnke Community Champion Jun 16, 2017

Sorry, but there's no way around it around it. I would NOT suggest adding default values like "N/A" or "Empty", it defeats the "field is EMPTY" JQL searches that prove useful.

If you really, really need this, you can customize JIRA Server. You cannot customize JIRA Cloud, so I have no suggestions.

You should take the source code of the Custom Fields that exist and modify their templates. Their VIEW template performs something like this:

#if($field.value)
<input type='text' value='$field.value' />
#end

Effectively, they currently check to see if the field has a value before rendering. You should disable that IF check. You may need to adjust other things but this is likely the simple, scrapy solution.

I need to display custom field value in email body.
Can anyone brief me how to append the above mentioned custom field in email body??
&nbsp;

I don't know how to get the value to appear in an email. You will probably get a quicker answer by posting a new question.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,965 views 12 18
Join discussion

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