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?

Thanks,

Russ

3 answers

1 accepted

0 vote

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 - https://developer.atlassian.com/display/JIRADEV/Adding+Custom+Field+to+Issue+Summary

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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

743 views 1 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