Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

ServiceNow provider update #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

ServiceNow provider update #129

wants to merge 2 commits into from

Conversation

pep-un
Copy link

@pep-un pep-un commented Oct 31, 2020

Update the provider to filter the label returned by ServiceNow to english and fix the ticket number retruned after the creation.

Add a filter to limit label to english
Fix the ticket number returned
@pep-un
Copy link
Author

pep-un commented Oct 31, 2020

Check on my centreon + snow instance, work fine

@sc979 sc979 requested a review from tanguyvda January 5, 2021 09:04
Copy link
Contributor

@tanguyvda tanguyvda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello pep-un, your PR is fine but in my opinion this is not the way we are going to implement it.

the first issue (changing sysTicketId for ticketId) requires an overhaul of the open ticket module. Service Now is one of the few ITSM software that is using a human readable ticket ID and an internal ID. The later being used to close the ticket through their REST API. This doesn't appear to be an issue with this provider since the close function is not implemented but it should.
Currently, we do not handle this kind of situation where we need to use two different ID for 1 ticket and this is a feature that we will do (and it will fix the Service Now provider)

the second issue is the language. This one is easier since it is specific to this provider. We can't force it to be english. Some will want it in spanish, french... The best way to solve this issue is to add another field in the rule form that let people set the language they want. Default being empty for update compatibilities purpose.

@sonarqube-decoration
Copy link

SonarQube Quality Gate:
Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 5 Code Smells

No Coverage information No Coverage information
83.3% 83.3% Duplication

@pep-un
Copy link
Author

pep-un commented May 19, 2022

I can understand my PR is not good enough, no shame on that I'm not a developer, but no one seems interested to fix it better than me. During this time the centreon-open-tickets plugin in not usable with service now, the biggest ITSM service on the market.

Can you give me some track on how to fix the language issue ? Does centreon has a user field for the web interface language I can use ?

@sonarqube-decoration
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell C 5 Code Smells

No Coverage information No Coverage information
83.3% 83.3% Duplication

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants