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

The 'Filed Against' attribute needs to be set error creating a work item

I want to create a work item and I found this way..

POST https://rtc:9443/jazz/oslc/contexts/_gasc4Ju-Ed6cerS9lb5AWw/workitems
Content-Type: application/x-oslc-cm-change-request+xml

<oslc_cm:ChangeRequest
xmlns:dc="http://purl.org/dc/terms/"
xmlns:rtc_cm="https://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
<dc:title>A new Bug</dc:title>
<dc:description>This is new bug</dc:description>
<dc:type rdf:resource="https://rtc:9443/jazz/oslc/types/_gasc4Ju-Ed6cerS9lb5AWw/defect"/>
<rtc_cm:filedAgainst rdf:resource="https://rtc:9443/jazz/resource/itemOid/com.ibm.team.workitem.Category/_hckJkpu-Ed6cerS9lb5AWw"/>
</oslc_cm:ChangeRequest>

but the server responses:

'Save Work Item' failed. Preconditions have not been met: The 'Filed Against' attribute needs to be set

What I am doing wrong?

thanks

0 votes



5 answers

Permanent link
the rtc_cm tag value needs to be changed to http from your current https
modify:
xmlns:rtc_cm="https://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/
to:
xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"
and it works

3 votes

Comments

Perfect!! That does the trick.... I was also stuck with a similar problem!


Permanent link
I think the field is
rtc_cm:filed_against

0 votes

Comments

hello sam, thanks for answer me,

but

rtc_cm:filed_against

doesn't work.


Permanent link
have you tried with
rtc_cm:filedAgainst
(notice the camel case capital A)

also, just to ensure the value you provide for filedAgainst is the right one, i would list an existing work item which was tagged with that category value and pick the rdf:resource value from there.

0 votes


Permanent link
looking at the resource shape of the work item type will show the referred namespace url
<oslc:propertyDefinition rdf:resource="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/filedAgainst"/>

0 votes


Permanent link
I modified

xmlns:rtc_cm="https://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/
to:
  xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"

and it works, but I have a new error:

status: 500

message: internalCategoryId is not a valid property for ProjectArea

any ideas?


0 votes

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
× 12,020
× 1,700
× 369

Question asked: Jun 26 '13, 4:57 p.m.

Question was seen: 8,032 times

Last updated: Jun 27 '14, 6:16 a.m.

Confirmation Cancel Confirm