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

How to get Slug ID after POST request in RQM URLutility?

Hi,

I am trying to do a POST request using the RQM Url utility to copy a test artifact from one server to another.This works fine. But I need the test artifact ID or Slug ID in destination project area in return to identify the test artifact later on for linking it to other artifacts. (e.g. linking test cases to Test suites to Test cases)

I know the custom header "Content-Location" can be used to get the slug ID of the artifact in the destination project area after the POST request. But how do I achieve this in URL utility.

Can I add custom headers in the url utility? If no then how do I achieve this?

1

0 votes


Accepted answer

Permanent link

 You can do a PUT request and append the id at the end of the resourceurl (provide unique resource id instead of server creating one for it). Then you can use that id to do GET.

Jitesh Saha selected this answer as the correct answer

0 votes

Comments
Thank you so much Subhajit. Your solution worked.
Instead of POST operation if I do a PUT operation with adding custom slug ID it works perfectly.

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
× 10,938
× 218

Question asked: Jun 07 '20, 6:12 a.m.

Question was seen: 1,549 times

Last updated: Jun 09 '20, 3:23 a.m.

Related questions
Confirmation Cancel Confirm