Matt Harutun
Matt Harutun

Reputation: 139

Using JSON, how do I UPDATE/POST a new message in a discussion of a Rally artifact?

This syntax does not work:

Example URL: https://rally1.rallydev.com/slm/webservice/v2.0/Defect/ObjectID?key=key

{ "Defect":
{
Discussion":
{
"Text": "some text"
} 
}
}

Upvotes: 0

Views: 726

Answers (1)

nickm
nickm

Reputation: 5966

A conversation post has to be created with a reference to the artifact.

Here is a POST URL format:

https://rally1.rallydev.com/slm/webservice/v2.0/ConversationPost/create?key=abc123...

In this example 777 is ObjectID of a defect on which you want to create a conversation post. Here is the Request Body:

{
"ConversationPost": {
"Artifact": "/defect/777",
"Text":"some text"
}
}

Upvotes: 1

Related Questions