Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on automation

Rosana Casilli
Contributor
November 13, 2023

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

 

 

There was an error during the rendering of your template

 

Message:
(string) [Line 1, Column 8]
  parseAggregate: expected colon after dict key
Can anyone help me on this?
Thanks in advance
Ro

2 answers

1 accepted

1 vote
Answer accepted
Alexey Matveev
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 Champions.
November 11, 2018

Hello,

Go to project settings -> fields and make the DoR and Dod fields required.

You can find more info about field configuration here:

https://confluence.atlassian.com/adminjiracloud/changing-a-field-configuration-844500798.html

prashantparashar
November 11, 2018

Thank you Alexey...

Alexey Matveev
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 Champions.
November 11, 2018

You are welcome!

0 votes
Girish_Kulkarni
May 13, 2020

Every User Story that starts and progress through different phases will come to completion where we would want to have a Definition of Done to be checked for each user story.

1. Create a Custom Field having CheckBoxes for each Definition of Done.

2. Set the values for DOD and configure the field as Mandaory

3. Once the DOD field is created we need to associate it with the Custom Screen.

4. Create a Custom Screen and add the custom field DOD to the screen

5. Now Edit the work flow associated with the project where we want DOD to be configured, 

6.In the Transition of Testing to Done ; You can add/call the custom screen.

7. Publish the workflow and Check if there are any unmapped fields on the board ; If required do map the Un Mapped status fields.

Verification :

1. Progress a work item / User story from Dev  -> Testing and Further to Done

2. Popup screen should populate for DOD 

3. Select the check boxes for all the DOD values and Mark as DONE.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events