You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have created a confiForm in Confluence. As a result, when a form is filled out, confiForms immediately creates an issue in Jira automatically.
Query: I was to define Due Date for the generated Jira issue automatically without taking any manual entry from a 'User' for due date. The Due Date should be 2weeks after the date of form submission.
So could you help me with the solution?
Thank you!
Welcome to Atlassian community
This page shows how to set the date for 15 days from now - https://wiki.vertuna.com/display/TEST/Using+ConfiForms+Field+Definition+Rule+to+set+the+date+to+15+days+after+the+date+the+user+has+selected And that is using the Field Definition rules
But you can also do this just in the JSON mapping that you have to create Jira issue
Having something like
"dueDate": "[entry.somedate.timestamp.add(1209600000).jiraDate]"
Where 1209600000 is 14 days in milliseconds
Alex
Thank you for the answer. But I dont have any manual entry for the date (somedate). It should be the date of submission of the form. Is there any code in JSON for the same?
Regards
Akhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can just add the same to created field (one of metadat fields each ConfiForms record has by default)...
"dueDate": "[entry.created.timestamp.add(1209600000).jiraDate]"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So for doing that do I need to define a new confiForm field for created? As you have mentioned in the code "entry.created". The code
"dueDate": "[entry.created.timestamp.add(1209600000).jiraDate]"
gives an error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have a due date field visible on your Jira create issue dialog?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I tried with the above code, Jira issue was not created due to the error. For other issues in the project, when I update the Due date field then its visible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, I will ask this again, as I am not sure I get your answer...
When you open Create Jira issue in JIRA for this particular project and Issue type - do you see a field called "dueDate"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No I do not see it when its created, until I set a due date.
When created:
When updated with a due Date:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, that explains the error you see - you cannot set something into Jira issue that does not exist...
And the field must exist/be visible on the Jira issue create screen to be settable
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Alex, I am able to define due date. The error was with the code. I just replaced "duedate" with "dueDate".
Regards
Akhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.