IFTTT on create , create jira ticket if statement for a customfield

Butch_Richards
Contributor
May 1, 2023

Last question for the day looking for the syntax for an if statement in IFTTT on create send email . 

 

I have a custom Field in confluence I want to write the if statement if the optional field is there then populate it and if its null do not try to populate it.  Below are the attempts 

 

#if(!${Epic.isEmpty()}) #set(customfield_10006:[entry.Epic])#end,

similar code works in description as seen below but that is free fomr text 

"description": "  *System* [entry.system.Label] \n\n #if(${clarityId}) *clarity Id* [entry.clarityId] #end \n\n *Base Description* [entry.desc.escapeJSON]\n\n *Requirements* [entry.req.escapeJSON] \n\n #if(${WhyCrit}) *Critical reason* [entry.WhyCrit] #end \n\n #if(${roi}) *Benefit* [entry.roi.escapeJSON] #end \n\n #if(${TargetTimeline}) *Target Timeline* [entry.TargetTimeline] #end \n\n #if(!${Impacts.isEmpty()}) *System Impacted:* [entry.Impacts] #end ",

2 answers

0 votes
Butch_Richards
Contributor
May 3, 2023

@Alex Medved _ConfiForms_  I totally missed that sorry  

0 votes
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 1, 2023

What type of field (in ConfiForms) is the "Epic" field?

Butch_Richards
Contributor
May 1, 2023

@ale jira issue  server jira 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 1, 2023

So, it is NOT a multi-value field?

Then just check it as a non multi value field


#if(${Epic}) "customfield_10006":"[entry.Epic]", #end

Alex

Butch_Richards
Contributor
May 2, 2023

@Alex Medved _ConfiForms_  that is correct single select field only but it is optional 

Butch_Richards
Contributor
May 3, 2023

@Alex Medved _ConfiForms_  any thoughts ? 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 3, 2023

Do you see my answer?  This way you can check if the field is non-empty

#if(${Epic}) "customfield_10006":"[entry.Epic]", #end

Alex 

Like Butch_Richards likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events