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
Accepted answer
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:

<input type='text' value='$field.value' />

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??

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 Sign up to answer
Community showcase
Published yesterday in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

195 views 0 0
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