attaching kb to incident via rest api

chercm
Mega Sage

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 ?

1 ACCEPTED SOLUTION

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. 

 

AshishKMishra_0-1701315601890.png

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

View solution in original post

8 REPLIES 8

It's not clear, how you are closing the incident , manual or via some scripted rest api call or table api call. 

 

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

@AshishKM 

 

" Incident table has a journal field "Attached KB Article", you can set the KB value via rest api call same as you are setting the other field values" how can i do that via api ?  how can i ensure the update article get attached ? 

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. 

 

AshishKMishra_0-1701315601890.png

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

@chercm, just checking if you got the desire result here, if so , please accept the solution. 

 

-Thanks


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution