Automation to change issue's priority upon change of voters

Karolina Rucinska November 1, 2024

Hi,

 

I have been looking into automating changing priority of my issues based on several factors and I have managed with the most, however one where I am completely stuck is the amount of "thumbs up" on an issue. It is a software project. I have tried asking all possible AI chats I can think of but they just make up conditions that are not possible to set in Jira automations - I cannot seem to find anyhthing related to Voters when I try to choose a field within Issue fields condition. I have tried using smart values and guessing what it could be -  tried {{issue.votes.size}}, {{issue.voters.size}}, etc.

I would imagine there must be a way to do that, otherwise what would be the point of voting?

Does anyone have any clue how to go about it?

6 answers

1 accepted

6 votes
Answer accepted
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2024

Hi and Welcome to the Atlassian Community!

At this point there is no trigger "When issue is voted", so you can't do an action in automation based on that event, that would be the easy solution.

Your syntax is correct:

{{issue.voters.size}}

 This gives you the Vote count. You can validate this by making a manual rule an use te Log action to log out the value:

Screenshot 2024-11-01 at 11.26.59.png

This will output:

Screenshot 2024-11-01 at 11.27.11.png

For your case, what you could do is create a Scheduled rule that runs every hour for example:

  • Use a smart value condition to check whether votes > 10 for example
    Screenshot 2024-11-01 at 11.32.31.png

  • If so change the priority

 

Be aware that in a scheduled rule, you provide a JQL for issues that need to be checked for enough votes. Here you can exclude the ones that already were raised in priority.

Hope this helps!

Jeroen

Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2024

Hi @Karolina Rucinska , please refer to @Jeroen Poismans 'a answer

Karolina Rucinska November 1, 2024

Thank you so much! I have tried going with Issue Updated trigger all this time and assumed there was something wrong with the syntax - I think scheduling the rule to the end of each work day does the job perfectly fine here. This has solved my problem :)

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 1, 2024

Hi @Karolina Rucinska -- Welcome to the Atlassian Community!

Yes, and...to the other suggestions, here is the open item for Votes changes are not detected in a way to trigger rules and other actions: 

https://ecosystem.atlassian.net/browse/ACJIRA-2522

Kind regards,
Bill

Like Karolina Rucinska likes this
1 vote
Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2024

@Karolina Rucinska I was able to fetch something more:Screenshot 2024-11-01 at 11.48.24.png

As a workaround I have created an automation rule that is looking for the issues that have been voted on and based on that the priority is being changed. This happens when the issue gets updated.

Karolina Rucinska November 1, 2024

This is what I have tried previously and it did not fetch the issues that have been voted on. I have now tried Jeroen's approach and it has worked. Thank you though!

1 vote
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 1, 2024

Hi @Karolina Rucinska 

Welcome to the community.

@Jeroen Poismans is correct, you can also use a scheduled trigger to have it auto check, say at then end or start of a day.

0 votes
Nikola Perisic
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2024

Hi @Jeroen Poismans 

You are right...it doesn't....my bad. Apologies. @Karolina Rucinska  please refer to @Jeroen Poismans answer

0 votes
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2024

Hi Nikola,

Not sure if a vote triggers an Issue Updated event? Does it?

Jeroen

0 votes
Karolina Rucinska November 1, 2024

Hi Nikola and thank you for your response!

 

So, if I understand it correctly, I have to look into some plugin in order to be able to achieve what I want... This feels very strange, as the sole purpose of voting feels defeated for me. But oh well, at least now I know that this is indeed the case.

Thank you again for your response!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events