Hi all,
I am trying to automate versions in JIRA via the REST API, in a bash script as a part of our pipeline, but for some reason the requests keep failing on the releaseDate and userReleaseDate. releaseDate returns "Error parsing date string" and for some strange reason userReleaseDate doesnt like the format given in the documentation.
Does anyone know how to resolve this?
Thanks,
Alex
P.S.
$
releaseDate=`date +%Y/%m/%d`
stringify=$releaseDate
["Unable to unmarshal (to type [simple type, class java.lang.String]): Error parsing date string: {{$releaseDate}} (through ref
erence chain: com.atlassian.jira.rest.v2.issue.version.VersionBean[\"releaseDate\"])"]
userReleaseDate=`date +%d/%b/%y`
stringify=$userReleaseDate
{"errorMessages":[],"errors":{"releaseDate":"Please enter the date in the following format: d/MMM/yy"}}
-d '{
"description": "{{jiraDescription}}",
"name": "{{$jiraName}}",
"archived": false, "
released": false,
"userReleaseDate": "{{$userReleaseDate}}",
"project": "FOO",
"projectId": 1234}'
}'