Hello everyone,
I would like to know if exist a API to enable and disable the Structure in a specific project.
I know that it is possible in the admin page but I need to implement that as a feature, all new projects created should be disable by default, but if the user desire, he can turn the structure plugin enable to his project.
in case of does not have a API how can I do that ? Any suggestion ?
In advanced, thank you !!
Hi,
Yes, that's possible using Structure Java API. You need StructureConfiguration interface:
You're looking for methods setEnabledForAllProjects() and setPickedProjectIds() with corresponding getters.
Be careful when setting the picked projects, you need to observe the format.
If you're not integrating with Structure yet, this is a good place to start: https://wiki.almworks.com/display/structure/Accessing+Structure+from+JIRA+Plugin
Good luck!
Igor
Hi Igor,
I saw that documentation. I will try to implement that. I have same concerns about permissions.
Many thanks for your answer.
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.