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

Create User Story is not working using OSLC 2.0 API

I have followed the given link but still not working , below error is coming :
https://rsjazz.wordpress.com/2022/02/02/ewm-work-item-oslc-cm-api/

Below are the details from Postman :

URL :-  https://jazz.net/sandbox02-ccm/oslc/contexts/_BQSnUdPkEe-l4uedvx_w7A/workitems/defect
Headers : 

Content-Type:application/json
Accept:application/json
OSLC-Core-Version:2.0


Request Body:- 

{
           "dcterms:title""Your User Story Title",
           "dcterms:description""Description of the user story",
           "rtc_cm:filedAgainst": {
            "rdf:type""http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/Category"
                
           
           }
         }


Error :-
{
    "oslc:statusCode"500,
    "prefixes": {
        "oslc""http://open-services.net/ns/core#"
    },
    "oslc:message""Save Status\nCRRTC0290E: The work item cannot be saved because the work item's type is not configured correctly at the project level. \nThe category is not from the same project area as the work item.\n",
    "oslc:cause": {
        "oslc:statusCode"500,
        "oslc:message""Save Status"
    }
}


Please provide help if anyone able to achieve this ........Thanks in Advance !

0 votes

Comments

The error message says: The work item cannot be saved because the work item's type is not configured correctly at the project level. \nThe category is not from the same project area as the work item.

Did you check this?

This is the second question around the same stuff, ignoring the error message and the answers.

This is a forum and not an API consulting, ignoring the information provided.
My suggestions, and I agree with Ian, especially because of your other post https://jazz.net/forum/questions/290317/getting-400-bad-request-while-crating-user-story-using-oslc-api having the same issue and error message.

  1. application/json is not supported by OSLC - see and google OSLC Core
  2. Make sure to discover the factories etc and to make sure the data belongs to the project area where it is used.

I don't know, how often I have provided this link already. If you want to start with OSLC, maybe follow this post: https://rsjazz.wordpress.com/2022/02/02/ewm-work-item-oslc-cm-api/ and note that I did also something wrong using application/json. It might work, but the public API documentation does not list this as a valid header.


Be the first one to answer this question!

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
× 10,951

Question asked: Jan 24, 8:32 a.m.

Question was seen: 56 times

Last updated: Jan 24, 5:16 p.m.

Confirmation Cancel Confirm