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 !!
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
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events