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
Community moderators have prevented the ability to post new answers.
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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.