Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

com.atlassian.jira.blueprint.api does not exists in JIRA 7.0

Diamantino Campos October 11, 2015

Hello,

 

Im trying to make my plugin available to JIRA 7.0 and maintaining compatibility with JIRA 6 but I'm having an hard time with <project-blueprint>

<add-project>
<hook>MyAddProjectHook  </hook>

 

because my version 6 hook was implementing com.atlassian.jira.blueprint.api.AddProjectHook and now from JIRA 7 it needs to implement com.atlassian.jira.project.template.hook.AddProjectHook.

 

Is it possible to have 2 classes (MyAddProjectHook6 and MyAddProjectHook7 and loading only one depending on which version of JIRA the plugin is running on?

 

Thank you

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Diamantino Campos December 14, 2015

HI, thank you for you answer.

I do know how to get the BuildNumber. I do not know how to load the 2 distincts version into my plugin at runtime.

 

Thank you

Lorie den Os July 19, 2018

Hello!

Have you ever found a way to achieve your goal to have a switch between hooks/templates in the same plugin?

Thanks in advance!

0 votes
Chris Stamp December 14, 2015

 You can use this public api  https://docs.atlassian.com/jira/latest/com/atlassian/jira/util/BuildUtilsInfo.html#getCurrentBuildNumber() ot get the JIRA Version info you need. 

TAGS
AUG Leaders

Atlassian Community Events