In JIRA 5.0.5 how do I remove the Build and Release option available in the manage versions dropdown menu

In JIRA 5.0.5 how do I remove the Build and Release option available in the manage versions dropdown menu

1 answer

0 votes

You will have to modify the jira-project-config bundled plugin and remove the web-items for release operation. See this link for some help on editing bundled plugins : http://www.j-tricks.com/1/post/2012/05/modifying-atlassian-bundled-plugins.html

Thanks for the quick reply Jobin. I was able to extract the plugin jira-project-config. But was not able to find the web-items that you have mentioned above. Please let me know the location of this file. Is it a vm file?

Hi Jobin,

Please help me out here..

Did you try the one wirh key "view_project_release"?

Jobin,

Thanks. I have done as you instructed but it still displays the "Build and Release" option under version. Please let me know what else can I do?

What it does it removes the release option but the Build and Release option still displays.

Amit.

Are you sure you didn't modify it in the extracted directory, but modified it in the plugin in the zip under WEB-INF/classes?

These are the steps that I followed:

1. Copied the zip file "atlassian-bundled-plugin" to a different folder and extracted it in that folder

2. Extracted the jar "jira-project-config-plugin-5.0".

3. Made changes to the file "atlassian-plugin.xml" by removing the following piece of code:

<web-item key="view_project_release" name="Release Version Operation"

section="atl.jira.version.admin.operations" i18n-name-

key="admin.project.com.atlassian.jira.projectconfig.versions.operations.release"

weight="10">
<label key="admin.manageversions.release" />
<styleClass>project-config-operations-release</styleClass>
<!--This is a trigger for javascript so we don't want a link but this is a required element-->
<link></link>
<conditions type="AND">
<condition class="com.atlassian.jira.plugin.webfragment.conditions.IsVersionArchived"

invert="true"/>
<condition class="com.atlassian.jira.plugin.webfragment.conditions.IsVersionReleased"

invert="true"/>
<condition

class="com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition"/>
</conditions>
</web-item>

4. Recreate the jar "jira-project-config-plugin-5.0" with the modified file "atlassian-plugin.xml".

5. Recreated the zip "atlassian-bundled-plugin" with the modified jar "jira-project-config-plugin-5.0".

6. Placed the zip file at the location WEB-INF/classes.

7. Restarted JIRA service.

What this did was it removed the "Release" option but the "Build and Release" option was still visible.

Please let me know if I had gone down the wrong lane.

Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

44 views 4 0
View post

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