sorry I think I mis-spoke in my comment - the two relevant annotations are described in https://jamieechlin.atlassian.net/wiki/display/GRV/Scripting+Other+Plugins and https://jamieechlin.atlassian.net/wiki/display/GRV/Working+With+JIRA+Agile
Thanks Jamie, I checked the documentation and tried @JiraAgileBean on practice - it works perfectly for all JiraAgile components, amazing! ) I spent a lot of time on trying to achieve the same playing with Spring contects, OSGi imports and so on but failed. May be you could share briefly the approach you used so that it can be reproduced in any third-party JIRA plugin development? Regards, Vasiliy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It involves leaping from one private field to another until you get the application context. I have actually posted details in a previous question... in java it would be the same but using reflection, and setting private fields as accessible etc. If I find a better way I will replace it, but I don't think it's going to happen until the JA folks decide they actually want a public API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I've done something like you've mentioned using existing public API and accessing private fields which represented hidden services which I needed. But it has limitation cause again the set of that fields is quite limited. Getting any service like you do even being some hack approach is the only possible, indeed. You've mentioned you've posted the details on some other question - I tried to search but seems didn't managed to find it. If you could add a link to it here, that would be great.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JiraAgileBean annotation does the magic of retrieving any JiraAgile bean unlike component-import in P2 plugin atlassian.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Jamie
If it works that way then it will save me a lot of time )
Will check it on practice and share the results here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should work with any internal service too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.