Add static text to a JIRA screen

I'm trying to add some static text either next to or below a field on a number of screens - especially my default view screen - but since the screens are created by adding/deleting fields, I figured I needed to add a read-only field. However, the fields that display won't include my read-only field because JIRA says:

"Note: when the screen is shown to the user only non-hidden fields that the user has permissions to edit will be actually displayed."

How do I do this? I have a custom field description, but it doesn't show up on the default issue view screen (https://mycompany.jira.com/browse/Issue-number), it only shows up when I edit the issue on the edit pop-up (screen.)

Note: I'm OnDemand, so I can't add plugins and whatnot.

6 answers

4 votes

The read-only field needs data behind it, and this is not what it's for

What you need is a different type of field - one that displays a message, not data. This can be done with the "message" fields from the Jira Toolkit, which I seem to remember is included in OnDemand, although you may need to enable it.

Hi Nic, I'm using server version and the message fields from Jira Toolkit aren't displaying. Do you know if this should work for server version or are they only for OnDemand? I'm surprised at how difficult it is to add this functionality...

It works fine on both for me.

Sorry, that was a bit short. I think the question becomes "what are you doing" so we can try to work out what is failing for you. The obvious one to check is if you're using the right field type on the screens.

=) It was implied... I've created 2 custom fields one Message Custom Field (for view) and one Message Custom Field (for edit) and assigned them both to a transition screen. There's not much to configure for the field though that I can see, just Field Name and Description. Is there somewhere else I go to add text? All I see on the transition screen is the comments section...

Ok cool, a transition screen is an "edit" type screen, so only the "for edit" one will work there. The text you want on screen needs to go in the "default" value for the field - check the context for the field

I was so close... Default value field a little confusing to find but I've got it now. Nic, thank you for all your contributions to the community!

I think *every* single time I've configured one of these fields, I've put my text in the description, not found it, then gone "oh, yes, I need to put it in the default. I'm sure I'll remember it next time" (of course, I don't)

I'll let you know next time I configure one...forget...and come back here to find the answer =)

@Nic Brough [Adaptavist]  'The text you want on screen needs to go in the "default" value for the field'. Do you mean that, even though a post function happily assigns a value to that field, only the "default" value is ever going to be displayed?  Because that's what I'm seeing ... sad

Correct - the message fields are for displaying a fixed message, rather than the content of the field - that's just ignored.

If you want different text on screen, put your data in a "read only text" field.  But remember as it's read-only, it will only appear on issue view.

@Nic Brough [Adaptavist] Thanks for that rapid response to my reopening an old question!  I'd already found your other answer with the  "read only text" field, and have just had it do what I want, but it's good to confirm that the message field doesn't do what I thought it does!

Doesn't look like this can be done. :(

Hi, Michal - that thread talks about adding a plugin, which can't be done on OnDemand.

Hi, Nic - the JIRA toolkit is installed, and enabled - I'll take a further look.

Hi Lee,

I don't think that this thread is only about plugin, for example: "The built-in read-only text field is what you need then - it cannot be edited on-screen. You have to set it with post-functions or listeners (or import from CSV)". This can be done without plugin in OnDenamd as well. I tested it right now and it works for me.. I add my test readonly field on my View Issue screen only and then create Post Function in Workflow transition to Update custom field value.. Michal

0 votes

You'd have to create your own custom field type extending the system one and change its "view" Velocity template to add the tooltip attribute to the HTML. In 5.2 there is a tooltip but it doesn't seem to be the custom field's description or field configuration description either

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

3,026 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