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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to enable/disable structure plugin using API ?

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 !!

1 answer

1 accepted

Hi,

Yes, that's possible using Structure Java API. You need StructureConfiguration interface:

https://almworks.com/structure/javadoc/latest/com/almworks/jira/structure/api/settings/StructureConfiguration.html

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. 

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Events near you