Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i modify the date format in confiforms for creating jira issue

Hatice Cesur March 4, 2019

Hello,

i tried to modify the confiforms form field "endtermin" but i get this error: com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"duedate":"Error parsing date string: 07. Mar 2019"}}

 

Why can it dont parse my date in yyyy/MM/d ?

 

Here is my code:

{
    "fields": {
       "project":
       { 
          "key": "MIB63"
       },
       "summary": "Flyer erstellen",
	 	"description": "Zweck der Bestellung: [entry.zweck], Format des Flyers: [entry.flyerformat.value], Sonstige Angaben: [entry.wichtig]",
"duedate": "[entry.endtermin.formatDate(yyyy/MM/d]",
 "issuetype": {
          "name": "Arbeitsaufgabe"
	 },
 }
}

 

1 answer

1 vote
Alex Medved _ConfiForms_
Community Champion
March 4, 2019

ConfiForms uses REST API to communicate with Jira and Jira REST API has own requirement in how the date field shall be formatted

We have made t easier for you and created a

jiraDate
jiraDateTime

virtual functions: https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

 

In your case use 

[entry.endtermin.jiraDate]
fbunting
Contributor
May 25, 2020

Thank you, Alex!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events