We had a requirement form a customer to create a way to collect user's feedback on tasks from multiple participants in a ticket.
The built-in surveys have some restrictions- they work only for Jira service management and do not support more than one value.
All the addons that were researched didn't have the needed features - especially using more than one user hit per ticket.
So, we were more or less alone :)
There was an idea to use the automations for calculating the average value of a select list field.
Here is the how we achieved this:
Two custom fields are needed:
The idea is that if there is a value change of the field "rating", the average rating is calculated using the formula (<average rating>+<rating>)/2. In the end there is an option for clearing the value of the rating field.
This lets the automation to update the ticket every time someone enters a value for the rating, using this formula:
{{#=}}({{issue.customfield_10232}}+{{singleRating}})/2{{/}}
There are also a check if the average field is empty , the fist entry> In this case, the value is just copied.
The whole automation looks like this:
Hi @Tihomir Nikolov _Nemetschek Bulgaria_
I believe that solution approach will inaccurately average over time.
For example, let's assume the ratings were 1, 2, and 2. Using the rule shown the averages over time would be:
But if the ratings were gathered and averaged, the result would be (1 + 2 + 2) / 3 = 1.667
Two alternative approaches could be:
{{#=}} ( {{issue.ratingList.split(",").join(" + ")}} ) / {{issue.ratingCount}} {{/}}
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.