New Custom Field Type based on the System Field "Description"

Hello folks,

One of the things I've been looking to do is expose the custom field type 'Text Field, Unlimited' in a much nicer way within Issue Types.

When you create a new issue, Description is a nicely exposed text field, easy to view and display content within. When you use the Custom Field type Text (unlimited) it presents itself at the top of the issue as a small single line collapsable item.

Essentially, this field type is useless to me as it doesn't expose the data in a way that I feel is beneficial. I can think of a number of applications for this, but right now I'd simply like to find out the right direction for adding a new Custom Field Type (have reviewed developers documentation on this so understand the principle, but I'm not a developer) that will display within an issue the same way Description does.

Could somebody help me out with this please?



3 answers

1 accepted

0 votes
Accepted answer

Ok, the screenshot does make it more clear.

I don't see a lot of difference between Description and Custom text though. The main thing is that the title for custom fields lies alongside the box, whereas for Description, it's above. That's a function of the type of field - Description is rendered totally separately from the custom fields and that bit is handled by core code.

I don't think modifying the .vm for a "free text" field is going to do it - the .vm files for a field handle the data display, and the problem you've got is with the framework they live within. (That confused me as I typed it, so another way to say it - when Jira is displaying a screen, it has a list of fields. For each one, it pulls out the title, does some decoration, displays the field name, and then goes to the field "and how do I display your data?". The field answers with "here's my .vm")

The only thing I can think of doing is pulling the field out into it's own specific area, similar to Description. That does need some hacking, but I think it's .jsp files only, and I'd start at -

... Of course, not for OnDemand...

Thanks Nic, I'll look into it... it's just a terrible shame as we could do some really nice work if we had the ability to do this. I may even look into the way styling is done... I've just got this hunch I could copy all the styling and .vm stuff and 'make it work' somehow...

Thanks again!

0 votes

Can you add a screenshot? Unlimited text field should behave the same as description or atleast similar. Also, you can change renderer to wiki style renderer under field configurations if you haven't done that already.

Oops, I'd just scribbled much the same!

There doesn't seem to be anything in the question that isn't answered by "use a free text field and check the renderer"

I've added a screenshot which shows the field I dislike at the top with the description. Hopefully this helps show this better.

Ok, based onthe couple of responses so far I've played with the renderers.

I've just tried this and changing the renderer doesn't appear to do anything special.

Free Text Field display using Wiki RendererWhat I really want to have is another section that looks and works just like Description does called "Steps to Replicate" or "Background" but as you can see, russtest just displays in the details section and that's not a logical position for it to be in...

Does that make it any clearer to understand?

I'm wondering if (and I don't have this at the moment, especially via On Demand) I could simply copy the .vm for description and rename some some things, adding in the Custom Field Type wrapper details as in the Developer Docs.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,172 views 5 10
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