I am trying to automate rule based priority for features in Jira
Asked by a855031:

Based on WSJF i want jira to automatically assign priority to my features


Answers:
author: Nicolas Grossi
body: [@a855031](/t5/user/viewprofilepage/user-id/5558834) Welcome! Could you please elaborate your desired rule ?

comments: author: a855031
body: I want each feature to have this value WSJF without manually writing the formula and calculating for each feature ![wsjf.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/339618iAB1E1A86B27DDFE9/image-size/large?v=v2&px=999 "wsjf.PNG")


author: Bill Sheboy
body: Hi [@a855031](/t5/user/viewprofilepage/user-id/5558834) -- Welcome to the Atlassian Community!

By WSJF, do you mean *weighted, shortest job first*, as described originally by Donald Reinertsen and then re-interpreted by others? If not, what do you mean?

And, what do you mean by "assign priority to my features"? Do you mean the Jira Priority field (e.g., High, Medium, Low, etc.), the Rank ordering of issues, or something else?

What have you done thus far to solve this need?

* If you have created a rule, and it is not working as expected, please post images of your complete rule, the relevant actions / conditions, and of the audit log details showing the rule execution. Then explain what is not working as expected.
* If you have not started a rule yet, I encourage you to try...
  * Such a rule could be triggered on changes to the input fields, perform the calculation, and then use conditions or a lookup table to select the priority value

Kind regards,  
Bill

comments: author: a855031
body: I want each feature to have this value WSJF without manually writing the formula and calculating for each feature ![wsjf.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/339617iA508004EA42568B7/image-size/large?v=v2&px=999 "wsjf.PNG")


author: Bill Sheboy
body: That appears to be one of the re-interpretations of WSJF from Dean Leffingwell's frameworks.

You could create an Atlassian Automation rule to perform the calculation, *provided you have numeric values for all of the inputs*. Or use a marketplace addon which can calculate dynamic fields.

To get you started on creating your automation rule, please refer to these documentation and example sources:

* <https://www.atlassian.com/software/jira/guides/automation/overview#what-is-automation>
* [https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all\&page=1\&pageSize=20\&sortKey=name\&sortOrder=ASC](https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC)
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/>
* <https://support.atlassian.com/jira-software-cloud/docs/use-advanced-search-with-jira-query-language-jql/>

Again, if you run into challenges after trying to create the automation rule, please post:

1. an image of your complete rule (in one, continuous image)
2. images of any relevant actions performing the calculation
3. an image of the audit log details showing the rule execution
4. explain what is not working as you expected, and how you know that


author: a855031
body: To crate automation rule I had to add custom fields and for my project there are no default screen to link the the field with How to create a screen and link with my project


author: Bill Sheboy
body: What type of project are you using: team-managed or company-managed?

If using team-managed, the project admin can add those fields.

If using company-managed, your Jira Site Admin will need to add them.


author: Trudy Claspill
body: I think this is related to the OPs other post here:

<https://community.atlassian.com/t5/Jira-questions/How-to-add-create-a-screen-and-link-to-my-project-in-jira/qaq-p/2777449>

In that post there is an image indicating a Team Managed project is in use.

For such a project [@a855031](/t5/user/viewprofilepage/user-id/5558834) you create the custom fields by going to Project Settings \> Issue Types. You select one of the available issue types. (1)

(2) In the panel on the right you use the options to create your new custom fields. This will add the fields to the screen shown in the middle area.

(3) Save the changes. That adds the field to just that one issue type.

Repeat those steps for each custom field you want to add.

![Screenshot 2024-08-06 at 3.31.30?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340380i8691A1A95E955C2B/image-size/large?v=v2&px=999 "Screenshot 2024-08-06 at 3.31.30?PM.png")

(4) To add the same field to the other issue types you have to click on the other issue type.

(5) Then in the panel on the right you search for the field you created previously.

![Screenshot 2024-08-06 at 3.33.58?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340381iF9D9343714D33412/image-size/large?v=v2&px=999 "Screenshot 2024-08-06 at 3.33.58?PM.png")

(6) Then you drag that field to the center area to add it to the screen for the current issue type.

![Screenshot 2024-08-06 at 3.36.05?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340382i2B9FD2201511A466/image-size/large?v=v2&px=999 "Screenshot 2024-08-06 at 3.36.05?PM.png")

(7) Save the change.

![Screenshot 2024-08-06 at 3.36.44?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340383iAAE0F93D19C9B6FB/image-size/large?v=v2&px=999 "Screenshot 2024-08-06 at 3.36.44?PM.png")

Repeat steps 4-7 for each issue type to which you want to add the fields.


author: Trudy Claspill
body: [@a855031](/t5/user/viewprofilepage/user-id/5558834)

I notice that you marked [@Nicolas Grossi](/t5/user/viewprofilepage/user-id/676185) 's answer as Accepted.

If [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) 's and my response helped you resolve your requirement, please consider clicking on the Accept Answer button directly above Bill's first response also.


Tags: cloud

jira-cloud