How can I create a JIRA plugin which only visible in a specific project?

Hi Everyone, 

I am developing a JIRA plugin right now. However, I want this plugin only work for a sepesific project. How to do this?

 

For example, my atlassian-connect.json is 

"modules": {
          "webPanels" :[
       {
         "location": "atl.jira.view.issue.right.context",
         "url": "/helloworld.html",
         "key": "support-panel",
         "name": {
           "value": "Support Group"
         }
       }
     ]
     }

I only want the project "IOTSG" issues can see this web panel on the right side. How to do this?

 

Thanks,

Jennifer.

1 answer

1 accepted

2 votes
Accepted answer

Hi Jennifer,

you should look at conditions for the addon descriptor.

Documentation is here: https://developer.atlassian.com/static/connect/docs/latest/concepts/conditions.html

You should be able to leverage those to put a custom condition in your addon for the project you want. Worst case scenario, you might have to write an entity-property with the project key, and then reference the entity-property in your condition.

Cheers,

- Anthony

Thank you very much! I have a basic idea now.

Jennifer.

Could you please share you idea? I have the same requriement

Have you worked through the concepts in the documentation Anthony gave?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

169 views 4 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you