Hi OtterHub,
I am working on Red Hat Enterprise Linux 7.6
OTRS Version: 4.0.32
I have successfully configured my system to use the Web Services API via REST.
I cloned this repository:
https://github.com/rkaldung/otrs-gi-rest-php
And use it to communicate via REST in PHP with the Generic Interface so I can update tickets.
I would like to use this functionality to update Change Requests as well.
I tried updating a Change Request using my typical Ticket update syntax, but with the change_number rather than the ticket_number, but unsurprisingly that did not work:
Update Ticket by ID using patch:
BEGIN API RESPONSE
C:\wamp64\www\OTRS_REST_API\client.php:94:
object(Unirest\Response)[4]
public 'code' => int 200
public 'raw_body' => string '{"Error":{"ErrorCode":"TicketUpdate.AccessDenied","ErrorMessage":"TicketUpdate: User does not have access to the ticket!"}}' (length=123)
public 'body' =>
object(stdClass)[5]
public 'Error' =>
object(stdClass)[6]
public 'ErrorCode' => string 'TicketUpdate.AccessDenied' (length=25)
public 'ErrorMessage' => string 'TicketUpdate: User does not have access to the ticket!' (length=54)
public 'headers' =>
array (size=4)
0 => string 'HTTP/1.1 200 OK' (length=15)
'Content-Type' => string 'application/json; charset=UTF-8' (length=31)
'Content-Length' => string '123' (length=3)
'Connection' => string 'close' (length=5)
END API RESPONSE
It says access denied, but I'm fairly certain it is just confused because it can not find the Ticket Number or ID (because they are Change_number and change_id.
Is there a way to configure the Web Service REST API so that I can update Change Requests (and their dynamic fields) as well?
I haven't been able to find any information online for this.
Any input is greatly appreciated.
Best regards,
Jack P.
Use OTRS Web Services to Update Change Request Variables
Moderator: crythias
-
- Administrator
- Posts: 3965
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Use OTRS Web Services to Update Change Request Variables
Jack,
AFAIK there are no REST operations for change management.
- Roy
AFAIK there are no REST operations for change management.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 12
- Joined: 16 Aug 2019, 21:49
- Znuny Version: 4.0.32
- Real Name: Jack Piotrowski
- Company: MAT Holdings Inc.
Re: Use OTRS Web Services to Update Change Request Variables
Too bad the functionality does not exist already.
Anyways, I am going to work on developing such functionality into the REST API.
If anyone should wish to contribute to my efforts please private message me on here with an e-mail and I will include you in the development process I am taking with a fellow developer who has offered his help already.
Best regards,
Jack
Anyways, I am going to work on developing such functionality into the REST API.
If anyone should wish to contribute to my efforts please private message me on here with an e-mail and I will include you in the development process I am taking with a fellow developer who has offered his help already.
Best regards,
Jack
Re: Use OTRS Web Services to Update Change Request Variables
OTRS 4 is outdated, unsecure and vulnerable. Also for Chnagemanagement it is suggested to use the processmanagement engine within OTRS including the calendar function and the ticket notifications.
YOu should update to ((OTRS)) community edition 6 or to OTRS 7
YOu should update to ((OTRS)) community edition 6 or to OTRS 7
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 2
- Joined: 09 Sep 2020, 16:07
- Znuny Version: 6.x
- Real Name: Miguel Navarro
Re: Use OTRS Web Services to Update Change Request Variables
Did you find out how to do it? im working on it in OTRS 6 but didnt find out how to do it.
-
- Administrator
- Posts: 3965
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Use OTRS Web Services to Update Change Request Variables
Miguel,
There are still no REST operations for change management. Implement changes with process management and you are able to access them via REST.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?