It's all about the answers!

Ask a question

API to close the defect automatically in IBM CLM tool


Muntasir Jilani (112) | asked Jul 07 '21, 2:53 a.m.

Hi, I am working on RTC Jenkins integration. 

1. Whenever Jenkins job gets failed, it is creating a defect in CLM tool.-- This task got completed using below API
2. Whenever Jenkins job gets succeeded, the earlier defect should be closed. Looking for some help here.
Thanks in advance.


One answer



permanent link
Ralph Schoon (63.1k33646) | answered Jul 07 '21, 6:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 You can use the same API. However, you can not directly set the workflow state. You have to perform the necessary work flow state changes using the workflow actions.


Comments
Ralph Schoon commented Jul 07 '21, 10:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Here are examples using another API, the RTC SDK and Plain Java Client libraries



This is server API, but should be mostly identical in the client API.


Muntasir Jilani commented Jul 08 '21, 10:00 a.m.

Thank you Ralph for your response.  You said "You have to perform the necessary work flow state changes using the workflow actions." Does it mean we need some manual intervention for example: "Add approver", "change state from Pending to approved", etc?

Can't we achieve the aim without using any manual intervention?


Ralph Schoon commented Jul 08 '21, 10:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I did not say anything about a manual process. You can apply workflow actions using API, did you care to look into the links? 

Your answer


Register or 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.