How to use if condition in Additional fields

Peyush Agarwal April 24, 2020

so I want to create an Automation Rule in Cloud 

What I want is suppose there is custom field as "Project Manager Name" 

if Project Manager name is "Peyush Agarwal" then change it to "Peyush Gupta" else it should remain same

I tried writing 

{
"fields": {
If ("Phase Detected" == "Phase Detected": {"value" : "Production Phase"})
{
"Phase Detected": ""
}
{
"Phase Detected": {"value" : "None"}
}
}
}

 

But looks like I am not able to write proper code. Can you please help 

1 answer

0 votes
Bibek Behera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2020

Hi @Peyush Agarwal ,

I am not that familiar with the automation, the way I would approach this is to use the bulk update with a JQL which has custom field which need to change. Using JIRA bulk update you can change the value of the custom filed at ones.

-Bibek

Suggest an answer

Log in or Sign up to answer