How to add customs fields with plugins in Jira

Deleted user November 27, 2017

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
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 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
TAGS
AUG Leaders

Atlassian Community Events