Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to set default date field on confiforms, or use IFTTT to pick a date if it's blank?

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" !="")

 #end

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:

"customfield_11412":"[entry.fldTargetStartDate.jiraDateTime]"

How do I add the #set, #if, #end  scripting into my IFTTT rule, with proper syntax?

Thanks!!

1 answer

What is the (business) logic of setting the default date? In other words, how do you know what value to set?

And is this a question about setting the date to ConfiForms field or in Jira JSON mapping?

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. 

Thanks!

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

https://wiki.vertuna.com/display/CONFIFORMS/Configuring+ConfiForms+IFTTT+actions+and+rules#ConfiguringConfiFormsIFTTTactionsandrules-Create(Update)ConfiFormsEntry 

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

Alex

That did it, thanks for your help!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

251 views 14 17
Read article

Community Events

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

Events near you