Hello, I have a confluence form with a non-mandatory date field that will only be populated for certain types of requests. I need this field to feed into the created Jira Issue but unable to map blank fields from confiforms to Jira. I don't see a way to set a default value in the date field, but I did find the below JSON that advised I can set a default date in the issue creation step:
#set ($thisDATE = "[entry.fldTargetStartDate.jiraDateTime]")
#if ("$!fldTargetStartDate" !="")
Problem is I don't understand how to integrate this into the IFTTT integration rule.
The JSON for the field I want to transfer is:
How do I add the #set, #if, #end scripting into my IFTTT rule, with proper syntax?
When the field on the form is not completed (blank) I'd like to insert the current date as a default to allow it to transfer to Jira.
Ideally, if easier, I'd like to set the confiforms date field to a default date of current date, but haven't been able to make it work.
If that isn't possible, I found the JSON mapping as an alternate way of doing it.
You can set up an IFTTT that Updates your ConfiForms record and sets the "fldTargetStartDate" to current date only if it's empty
Meaning that you put
with condition set to: fldTargetStartDate:[empty]
Parameters to set: entryId=[entry.id]&fldTargetStartDate=[entry._now]
Makes sense to set the "Stop events propagation"
This IFTTT needs to be placed BEFORE the one that attempts to create your Jira ticket
Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events