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.
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...
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 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)
@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 ...
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!
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.
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
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
Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events