It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add Configuration Parameters for Custom Field


I currently have implemented a String Customfield called BillingCodeField that extends AbstractSingleFieldType<String>. For this customfield I have the edit.vm implementing a cascading select box populated by AJAX calls to a JIRA REST Resource.

What I would like to do is when I add the Field and enter the initial configuration or just edit the configuration is have more configurations than just Field Name and Description. What I would like is to add my own configuration text fields there that I could then access within my edit.vm like defining where the REST Resource is, or defining certain filter parameters to pass in my AJAX Call.

Anyone have places I could start in terms of figuring out how to do this? I've tried googling and searching Answers but it hasn't yielded me any results yet.


2 answers

1 accepted

2 votes
Answer accepted

You'll need to create your own ConfigurationItemType and add it to the return value of the getConfigurationItemTypes() method in your BillingCodeField class. You can check out the com.atlassian.jira.issue.customfields.impl.SelectCFType for an example of how this works.

Hope that helps!

Thanks, this has pointed me in the right direction.

Guys, hello.

These all are quite useful, but I didn't get to the point.

I've done all mentioned above and now I stuck at saving configuration's parameter value.

How can it be done and where it can be saved?

I want to create a field, that will be incremented each time, that some event fires. Name of event must be stored in this configuration.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published 9 hours ago in Off-topic

Teams behind the teams - Your nominations please!

Teams do amazing things together. We’ve talked about the myth of the lone genius and how everything is actually the result of teamwork. You might be thinking, What about a novelist writing, say, Th...

53 views 0 6
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