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
Alexey Matveev Community Champion Nov 27, 2017

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

551 views 3 11
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