How to limit plugin visibility by issue type

visagan santhanam August 29, 2018

HI,

i have created a plugin which will be part of the Issue Detail page. i would like to control the visibility of UI of my custom plugin based on the issue type. for example the plugin should be visible only if the issue type is "Bug" and should be hidden for other issue types. is there a possiblity of implemeting it in JIRA? 

any help would be appreciated.

 

 

2 answers

1 vote
Pedro Felgueiras
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.
August 29, 2018

Hi @visagan santhanam

 

You can make a condition on the start of you .vm file 

#if ($issue.issueType.name == "Bug")

And the plugin will only be showed if it's the correct issue type

 

Best regards, 

Pedro Felgueiras  

visagan santhanam September 11, 2018

Thanks That worked

1 vote
Alexey Matveev
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.
August 29, 2018

Hello,

I guess, you made a web panel. You should add a condition class to this web panel.

https://developer.atlassian.com/server/jira/platform/web-panel/

Suggest an answer

Log in or Sign up to answer