How do you make a web item disabled on plugin install?

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
June 19, 2011

Neither of these approaches seem to work - all items show as enabled. http://confluence.atlassian.com/display/JIRA/Web+Item+Plugin+Module suggests that the first option should work.

  1. as an attribute
    <web-item key= ... disabled="true">
    ...
    </web-item>
    
  2. as an element
    <web-item ... >
    ...
    <disabled>true</disabled>
    </web-item>
    

2 answers

1 accepted

1 vote
Answer accepted
Adam Laskowski
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.
July 22, 2011

Hi Bob,

According to the documentation, your use of <web-item ... disabled="true"> is correct, however, when we examined the source code, it looks like the way do disable a web item is to use:

<web-item ... state="disabled">

We will investigate the descepency and make sure that the documentation is in line with the correct way to use the disable attribute, whether it be a code- or doc-based fix. Please track the progress here:


https://jira.atlassian.com/browse/JRA-25157

0 votes
Shannon Krebs
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.
June 19, 2011

I'm guessing this is related to Jira plugins based on the url? am pretty sure the disabled="true" attribute works in Confluence.

Bob Swift OSS (Bob Swift Atlassian Apps)
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.
June 19, 2011
Yes, JIRA 4.3.3 and 4.2.4.

Suggest an answer

Log in or Sign up to answer