Issue Details (XML | Word | Printable)

Key: JRA-12750
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Karīna
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JIRA

Customfields in plugin not shown

Created: 17/May/07 06:28 AM   Updated: 18/May/07 12:19 AM
Component/s: Custom Fields (new types)
Affects Version/s: 3.8.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment: GNU bash, version 2.05.8(1)-release (i386-redhat-linux-gnu)
Issue Links:
Duplicate
 

Participants: Anton Mazkovoi [Atlassian] and Karīna
Since last comment: 1 year, 20 weeks, 3 days ago
Labels:


 Description  « Hide
New customfield types in plugins not shown after jira restart.

Solution: This is how we modified com.atlassian.jira.plugin.JiraPluginManager

JiraPluginManager .java
public void start() throws PluginParseException
    {
        init();
        /*some plugins might contain CustomField descriptions.
         * So after all rest of plugin loading, 
         * CustomFieldManager should be refreshed, 
         * so now it can find all CustomField to resolve their instances in db.
         */        
        ComponentManager.getInstance().getCustomFieldManager().refresh();
    }

This works!



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] added a comment - 17/May/07 10:07 PM - edited
Thanks for reporting. I think the problem is that your have a plugin that depends on a custom field manager, or depends on something that (eventually) depends on a custom field manager.

I think a work around for now is to load that "something" statically, using:

ComponentManager.getInstance().getWhatEverTheClassIs()

This way you will not need to change JIRA's source.

I think this issue is related to JRA-10978.

Cheers,
Anton