Hello all!
I am trying to write a event in JWWE in order to evaluate if the field Sprint changes for an issue to a value of an active sprint to set the field label to "NotPlanified" and if the Sprint is not active to set de value of Label to "Planified"
I have tried this:
{% if {{ issue | sprints("active") | first | field("id") }}>0 %}
{% set issue.fields["Etiquetas"] = "NotPlanified" %}
{% else %}
set issue.fields["Etiquetas"] = "Planified"
{% endif %}
But when testing it shows me the following error
(string) [Line 1, Column 8] parseAggregate: expected colon after dict key
Hi Rosana, I'm Melanie from the Appfire support team; you can check the configuration I set on my end below:
{% if issue | sprints("active") | first | field("id") %}
NotPlanified
{% else %}
Planified
{% endif %}
You can additionally set a condition for the post-function to avoid the post-function being triggered when the Sprint value is deleted.
{{ issue.fields.<sprint field> != null }}
If you have further questions, you can raise a ticket on our support portal: https://appfire.atlassian.net/servicedesk/customer/portal/11
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Melanie Corletto (Appfire)
Thanks for your answer. I tested it but no matter if it is a active sprint or not it is always assigning NotPlanified.
am I missing anything?
{% if issue | sprints("active") | first | field("id") %}
NotPlanified
{% else %}
Planified
{% endif %}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay I have tested but I have a question.... I want the value to be replaced, any time the sprint is changed from an active to an inactive sprint.
Now the field label is updated the first time I move the issue from one sprint, let say from an inactive to an active, but if I move it from an active to an inactive sprint the value is not changed
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.