In JIRA 5.0.5 how do I remove the Build and Release option available in the manage versions dropdown menu
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try the one wirh key "view_project_release"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.