I'm looking to create an automation that will automatically update my work items from lower priority to higher priority. The main thing I would like to happen is for the automation look at my current work items and check their priority. If none are labeled "Highest Priority" Then it will pick one based on certain criteria (i.e. story points, due date, etc.) and change the priority to Highest. I only want it to change one work item at a time, not update all of them at the same time.
Hi @scurtin
What have you tried thus far to solve this need?
When you have an automation rule and have questions, context is important for the community to help. Please post the following:
When you have not yet written a rule yet, I recommend trying to do so as experimentation is essential to learn how to create and maintain rules.
For the scenario you describe, I recommend starting by writing JQL expressions outside of the rule to find the work items of interest. Once this is working correctly, it could be used with rule conditions, actions such as Lookup Work Items, or branching to identify and then update the ones needed. More specifically, I recommend using a lookup to confirm no work items are "Highest" priority, and then using JQL again to select your one-and-only-one work item to update with a branch.
To get you started, please see this information:
Kind regards,
Bill
Hi @scurtin
I did this:
1. Scheduled (you can add every two hours, 3 or 9 am)
2. we lookup and filter (we need a filter for priority, stoty points , due date, etc.)
3. then with the smart value we only change the first item found in the list ( new JQL key = {{lookupIssues.first.key}} )
4. then we set it to highest
----
1.For the story points its the same,we dont check the priority, only if the story points=5.
2. then set it to highest.
This sorta works like if/else, if the priority isnt low, then it will send an error in the logs and move to the next lookupissues.
Why like this? we cannot use if/else inside a branch. and only one if doesn't cut it.
hopefully this work!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.