Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-8994

Renaming 'Priority' to 'Severity' and Creating a New 'Priority' Field

    • Icon: Support Request Support Request
    • Resolution: Handled by Support
    • Icon: Medium Medium (View bug fix roadmap)
    • None
    • 3.0.2
    • None

      Hi,

      I'd like to make 2 changes in our 3.0.2 JIRA:

      Rename 'Priority' field to 'Severity''
      Create a new 'Priority' field with three selectable options; High, Medium and Low

      What do I have to do? Your help would be appreciated.

      Thanks,

      Christian

            [JRASERVER-8994] Renaming 'Priority' to 'Severity' and Creating a New 'Priority' Field

            Hi again,

            I suppose we can close this issue since I've found other ways to make the changes wanted.

            Instead of renaming "Priority" to "Severity", I changed the options of the existing "Priority" field to "High", "Medium" and "Low".
            And I also created a custom field called "Severity" with the options "Severity 1", "Severity 2", "Severity 3", "Severity 4", and "Severity 5".

            Regards,

            Christian

            Christian Gunadirdja added a comment - Hi again, I suppose we can close this issue since I've found other ways to make the changes wanted. Instead of renaming "Priority" to "Severity", I changed the options of the existing "Priority" field to "High", "Medium" and "Low". And I also created a custom field called "Severity" with the options "Severity 1", "Severity 2", "Severity 3", "Severity 4", and "Severity 5". Regards, Christian

            Christian,

            > I extracted language_default.jar in webapp\WEB-INF\lib to \edit-webapp\WEB-INF\classes

            Did you leave language_default.jar in webapp\WEB-INF\lib? If so, its values would still be used. Please delete it, delete the tmp\ directory and run build.bat to rebuild/redeploy the webapp.

            Cheers,
            Jeff

            Jeff Turner added a comment - Christian, > I extracted language_default.jar in webapp\WEB-INF\lib to \edit-webapp\WEB-INF\classes Did you leave language_default.jar in webapp\WEB-INF\lib? If so, its values would still be used. Please delete it, delete the tmp\ directory and run build.bat to rebuild/redeploy the webapp. Cheers, Jeff

            Further investigation reveals that the UndeclaredThrowableException error forementioned is not caused by the new Priority field. Activating a new workflow was the actual cause (sorry for the confusion and please ignore it for this issue)

            Christian

            Christian Gunadirdja added a comment - Further investigation reveals that the UndeclaredThrowableException error forementioned is not caused by the new Priority field. Activating a new workflow was the actual cause (sorry for the confusion and please ignore it for this issue) Christian

            Hi Nick,

            Thanks for your comment.

            About renaming the default Priority field to Severity. I did a search for Priority in all property files I extracted from language_default.jar and found out that only JiraWebActionSupport.properties has instances of Priority.

            Below are instances of Priority that I found in JiraWebActionSupport.properties:

            1. JIRA concepts
              common.concepts.bypriority = By Priority

            #project timetracking report
            timetracking.priority = Priority

            #version workload report
            workload.version.report.priority = Priority

            #issue field names
            issue.field.priority = Priority

            1. issue column headings
              issue.column.heading.priority = Pr

            Which all but the last one have been changed to:

            common.concepts.bypriority = By Severity

            timetracking.priority = Severity

            workload.version.report.priority = Severity

            issue.field.priority = Severity

            issue.column.heading.priority = Pr

            I extracted language_default.jar in webapp\WEB-INF\lib to \edit-webapp\WEB-INF\classes
            Then I stopped the server and deleted JIRA sub-directory at these locations:
            a. "C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps"
            b. "C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost"
            The next thing I did was ran "build.bat" to rebuild JIRA and then I started the server.

            My observations:

            • JiraWebActionSupport.class in \webapp\WEB-INF\classes\com\atlassian\jira\web\action never changed
            • JiraWebActionSupport.properties and JiraWebActionSupport..class in \tmp\build\war\WEB-INF\classes\com\atlassian\jira\web\action were modified.

            About the new Priority field, I managed to edit the option list and also set the default option. However now when I create a new issue, JIRA display the following error message:

            Form Errors:
            Exception: java.lang.reflect.UndeclaredThrowableException

            Thanks again for your help,

            Christian

            Christian Gunadirdja added a comment - Hi Nick, Thanks for your comment. About renaming the default Priority field to Severity . I did a search for Priority in all property files I extracted from language_default.jar and found out that only JiraWebActionSupport.properties has instances of Priority . Below are instances of Priority that I found in JiraWebActionSupport.properties : JIRA concepts common.concepts.bypriority = By Priority #project timetracking report timetracking.priority = Priority #version workload report workload.version.report.priority = Priority #issue field names issue.field.priority = Priority issue column headings issue.column.heading.priority = Pr Which all but the last one have been changed to: common.concepts.bypriority = By Severity timetracking.priority = Severity workload.version.report.priority = Severity issue.field.priority = Severity issue.column.heading.priority = Pr I extracted language_default.jar in webapp\WEB-INF\lib to \edit-webapp\WEB-INF\classes Then I stopped the server and deleted JIRA sub-directory at these locations: a. "C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps" b. "C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost" The next thing I did was ran "build.bat" to rebuild JIRA and then I started the server. My observations: JiraWebActionSupport.class in \webapp\WEB-INF\classes\com\atlassian\jira\web\action never changed JiraWebActionSupport.properties and JiraWebActionSupport..class in \tmp\build\war\WEB-INF\classes\com\atlassian\jira\web\action were modified. About the new Priority field, I managed to edit the option list and also set the default option. However now when I create a new issue, JIRA display the following error message: Form Errors: Exception: java.lang.reflect.UndeclaredThrowableException Thanks again for your help, Christian

            Christian,

            You should make sure you change all instances of Priority to Severity in all the property files.
            Can you also, re-extract your language jar (from the deployed app) file and check that your values are in there.

            In regards to the the Priority field, simply create a Select List Custom Field. You will then need to configure it and add your options to it.

            Let us know how you go.

            Cheers,
            Nick

            Nick Menere [Atlassian] (Inactive) added a comment - Christian, You should make sure you change all instances of Priority to Severity in all the property files. Can you also, re-extract your language jar (from the deployed app) file and check that your values are in there. In regards to the the Priority field, simply create a Select List Custom Field. You will then need to configure it and add your options to it. Let us know how you go. Cheers, Nick

            Thanks for your helpful comments, both Neal and Anton.

            What we actually want is to have 2 fields; 'Priority' and 'Severity'.

            'Severity' field is just JIRA's default 'Priority' field renamed to 'Severity' so it would still have 'Showstopper', 'Major', ' Minor', 'Cosmetic', and 'Suggestion'
            I've done what's outlined in http://confluence.atlassian.com/display/JIRA/Customizing+text however after rebuilding (restarting) JIRA, it still says 'Priority'.
            What am I doing wrong?

            'Priority' field would have 'High', 'Medium' and 'Low'.
            I understand that this would involve creating a custom field with three selectable options as above. How do I get the selectable list populated with 'High', 'Medium' and 'Low'?
            Would you mind helping me with this one as well?

            Thanks again,

            Christian

            Christian Gunadirdja added a comment - Thanks for your helpful comments, both Neal and Anton. What we actually want is to have 2 fields; 'Priority' and 'Severity'. 'Severity' field is just JIRA's default 'Priority' field renamed to 'Severity' so it would still have 'Showstopper', 'Major', ' Minor', 'Cosmetic', and 'Suggestion' I've done what's outlined in http://confluence.atlassian.com/display/JIRA/Customizing+text however after rebuilding (restarting) JIRA, it still says 'Priority'. What am I doing wrong? 'Priority' field would have 'High', 'Medium' and 'Low'. I understand that this would involve creating a custom field with three selectable options as above. How do I get the selectable list populated with 'High', 'Medium' and 'Low'? Would you mind helping me with this one as well? Thanks again, Christian

            AntonA added a comment -

            Christian,

            To change Priority to Severity you will need to go thorough JIRA's language files and replace Priority with Severity. Some information on this can be found in the following document:
            http://confluence.atlassian.com/display/JIRA/Customizing+text

            Please note that until JIRA 3.5 is released only the 'user' part of JIRA's UI uses the language files. In JIRA 3.5 the Administration section of JIRA will also use language files.

            Once you have renamed the field, you can then customise the option to High, Medium, Low by navigating to Administration -> Issue Settings -> Priorities.

            I will resolve this issue. Please let us know if you have any questions and we will reopen it.

            Thanks,
            Anton

            AntonA added a comment - Christian, To change Priority to Severity you will need to go thorough JIRA's language files and replace Priority with Severity. Some information on this can be found in the following document: http://confluence.atlassian.com/display/JIRA/Customizing+text Please note that until JIRA 3.5 is released only the 'user' part of JIRA's UI uses the language files. In JIRA 3.5 the Administration section of JIRA will also use language files. Once you have renamed the field, you can then customise the option to High, Medium, Low by navigating to Administration -> Issue Settings -> Priorities. I will resolve this issue. Please let us know if you have any questions and we will reopen it. Thanks, Anton

            While you're waiting on Atlassian, you might want to read JRA-886.

            Neal Applebaum added a comment - While you're waiting on Atlassian, you might want to read JRA-886 .

              Unassigned Unassigned
              1801e13c29a1 Christian Gunadirdja
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: