Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Addon admin page visible when user is in group

David Desjardins
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2019

Hello,

I'm currently building a Jira Addon using the app descriptor and I'm not able to understand the user doc concerning the way to use conditions. My goal is to display the menu if a user in a particular group. In my case, I created a group "KPI_administrators". This group defined weather a user should access the admin panel of the addon. 

https://developer.atlassian.com/cloud/jira/platform/conditions/#property-conditions

For now, I tried this

"adminPages":[ { "name": { "value": "Admin" }, "url": "//dashboard?admin=true", "key": "dropdown-1-2", "location": "my-dropdown/dropdown-section-1", "weight": 2, "conditions": [ { "condition": "entity_property_contains_any_user_group", "params": { "entity":"user", "propertyKey":"groups.items", "objectName": ["administrators"] } } ] } ],

Which is definitely not the way to do it.

Thanks,

David

 

0 answers

Suggest an answer

Log in or Sign up to answer