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

Jennifer Zou May 18, 2017

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
Answer accepted
Anthony De Moss
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2017

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

Jennifer Zou May 18, 2017

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

Jennifer.

hongchao song November 14, 2017

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 15, 2017

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

Suggest an answer

Log in or Sign up to answer