Start of using Compoment Manager (again) in JIRA 8.X

Normann P_ Nielsen _Netic_
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.
December 16, 2019

In JIRA 7, I belive we did not use CompomentManager anymore..

 

I have a Script:

 

WorkflowTransitionUtil workflowTransitionUtil = ( WorkflowTransitionUtil ) JiraUtils.loadComponent( WorkflowTransitionUtilImpl.class )

 

An the JIRA Scriptrunner (I'm at JIRA 8.X) advise is:

 

Script95.groovy:20 use ComponentManager.loadComponent(Class, Collection) @ line 20, column 76.

 

Is CompomentManager still useable, seems to be in JIRA 8.X : https://docs.atlassian.com/software/jira/docs/api/8.4.1/com/atlassian/jira/component/pico/ComponentManager.html

 

Advise?

1 answer

0 votes
Damian Wodzinski
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.
December 16, 2019

JiraUtils is not used anymore:
"Miscellaneous utility methods. Most have moved into more specific classes."

 

For certain thing CopmonentManager is being used, I am using it since Jira 6.x

Suggest an answer

Log in or Sign up to answer