My problem is as follows:
I am wanting to create a display-only field that it will be kept a log of the history of a particular element.
Does anyone know how do I make a field readonly or print as text only, this programmatically?
You can make a field read-only by simply removing it from all but the "view" screens in Jira (the other types of screen are "edit", "create" and "transition", all of which make it editable by the users)
A second option would be to use the built-in "read only field"
A third option would be to create your own field *type* which behaves as you want.
Now, that's just covered the dsiplay options - what you also need to think about is getting the data in there. For options 1 and 2, there's pretty much one answer - write some code that extracts the data you need and pushes it into the field to be displayed later. Option 3 gives you another possibility - writing a "derived" field - that would display (and allow search) information on the issue without having to duplicate it into a field.
I would rather write a scripted field rather than writing a plugin that can show the data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.