Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Illegal argument thrown when submitting new work item post via REST

I've been able to create work items through the OSLC REST API but I've started getting Illegal argument errors whenever I try to submit a dateTime field.

This is the line that is breaking on me:
<rtc_ext:project_end_date rdf:datatype=\"http://www.w3.org/2001/XMLSchema#dateTime\">${end_date}</rtc_ext:project_end_date>

I've used 12/34/56, 12-34-56, and 12-34-56T7:89:01 as formats, but that hasn't solved this issue.
I strip the line out, I can create a new work item with the script just fine. Why will this line not execute?

0 votes



One answer

Permanent link

https://www.w3.org/TR/xmlschema-2/#dateTime ?

None of the patterns there match; most have yyyy-mm-ddRHH:MM:SS

not to mention :89: as minute is invalid ( if your example is literal )

0 votes

Comments

I've tried 2001-01-01R01:01:01 as well with the same results.

It should be 2001-01-01T01:01:01. Kevin made a typo there, but the referenced document is very clear on this.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 515
× 478
× 31
× 10

Question asked: Apr 19 '17, 3:17 p.m.

Question was seen: 3,083 times

Last updated: Apr 20 '17, 10:54 p.m.

Confirmation Cancel Confirm