It's all about the answers!

Ask a question

How to change the primary text and the attribute value of an artifact created in module using OSLC? (DNG)


Mahitorn Kanjanapart (111) | asked Apr 22 '20, 10:05 a.m.
edited Apr 23 '20, 11:30 p.m.

Hi,

I am using OSLC to change primary text of an artifact created in module.
The server response 200 but the primary text is not changed.

What is the correct way to change attribute value of an artifact created in module?

I am using the following request to update artifacts outside modules without problem.
Action: PUT
URL: https://<server>/rm/resources/MB_XXXXXX
If-Match="%220%22&%22%2522_XXXXXXXXXXX%2522%26%2522_XXXXXXXXXXX%2522%22"
Content-Type: application/rdf+xml

My problem is that I can't update the artifact in the module.

2 answers



permanent link
Ian Barnard (1.5k613) | answered Apr 23 '20, 5:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 23 '20, 5:04 a.m.
Hi Manitorn

You only need to ask once ;-)

Please refer to e.g. https://jazz.net/library/article/1197 for guidance on using OSLC interfaces. It's often a good idea to start by using a browser-based REST app to manually do the get and put, so that you have all the headers and encoding sorted out, then write the code to replicate this, and by tracing network then confirm that the code is doing what you did manually.

Good luck!

Regards
Ian


permanent link
Mahitorn Kanjanapart (111) | answered Apr 23 '20, 7:45 a.m.

Hi,

I am using the following request to update artifacts outside modules without problem.
Action: PUT
URL: https://<server>/rm/resources/MB_XXXXXX
If-Match="%220%22&%22%2522_XXXXXXXXXXX%2522%26%2522_XXXXXXXXXXX%2522%22"
Content-Type: application/rdf+xml

My problem is that I can't update the artifact in the module.


Comments
Ian Barnard commented Apr 23 '20, 8:15 a.m. | edited Apr 23 '20, 8:17 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You should really edit this detail into your question. Have you confirmed that permissions/workflow state/team ownership allow your user to make this change? Are you updating/checking the artifact in the same configuration? Is your server on the latest ifix? Does the same update work using a REST client?

Your answer


Register or to post your answer.