How to add customs fields with plugins in Jira

Hello,

I have a plugin that add new custom fields types for Jira (see : https://developer.atlassian.com/jiradev/jira-platform/building-jira-add-ons/jira-plugins2-overview/jira-plugin-module-types/custom-field-plugin-module).

I would like to add some fields of this new custom type when the plugin is installed , what is the correct way to do that ?

1 answer

1 accepted

1 vote
Accepted answer

Hello,

You could

1. Implement a bean which is LifecycleAware and then implement onStart event where you would create your custom fields. You can read more here

https://developer.atlassian.com/jiradev/jira-platform/building-jira-add-ons/jira-plugins2-overview/jira-plugin-lifecycle

2. You could set a bean implement InitializingBean, DisposableBean and then in the afterPropertiesSet create your custom fields.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,904 views 19 22
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