Goal: create an automation to count the amount of times the word "yes" has been selected across custom drop-down fields in an issue and inputting the total amount of the word "yes" into another custom number field on the same issue.
Context:
Here is the most recent version of my smart value equation that's experiencing errors.
{{#=}} ({{issue.customfield_10630.value == "Yes" ? 1 : 0}} + {{issue.customfield_10633.value == "Yes" ? 1 : 0}} + {{issue.customfield_10631.value == "Yes" ? 1 : 0}} + {{issue.customfield_10632.value == "Yes" ? 1 : 0}}) {{/}}
Hello @Caressa ,
Here is how it can be done, hope it helps.
Create a field of type “Number”
I have created three questions with Yes/No answer.
Next comes automation
Now since I have selected Yes as 3 times, the count is set to 3.
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Caressa ,
You can use the trigger "Value Changed" and provide all the field which are eligible for this requirement.
When "Yes" is selected for any of the selected field, you can have a counter defined on another field, increment it by 1 and if selected as "No", decrement it by 1.
By this, you can have the actual count of Yes selected for all the available fields with such option. Hops this helps.
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vijay,
Thank you for your response!
Could you expand in more detail on how I can create a counter in my field as that is what I am currently struggling with?
Also, if selected as "No", increment it by 0. I do not want No's to affect the total amount, only "Yes".
Have a great day and appreciate your insight :)
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.