- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 04:08 PM
attaching kb to incident via rest api.
i am able to create an incident using api but when closing i need to attach a default KB article to it.
any way to do it ?
if the kb article gets v1 or v2 , how can i get the updated version in ? or i need to update the api call again ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 07:40 PM - edited 11-29-2023 07:41 PM
If you are closing the incident via api then send the whole KB related data as a string value and update in additional comment, system will add that KB Article link in activity log.
explain, how you are closing this incident.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 06:08 PM
When you say while closing, does that mean your are closing using API call only or just locally by clicking on some UI action ( button ) ?
Please clarify the requirement a bit more in detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 06:38 PM
@H S B when opening ticket, i will need the kb to be attached on the incident .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 06:12 PM
Hi @chercm ,
Do you have both version published at same time? , If that is case, you can manage in rest api code and get the latest version for incident.
Try to attach with the KB number and check which one attaching with incident,
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 06:34 PM - edited 11-29-2023 07:22 PM
@AshishKM do you mean that i need to manually look up the kb and put into the code ?