Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying a filter is being added as a separate sysparm_query and is ignored by SN #11

Closed
Manj75 opened this issue Oct 2, 2019 · 0 comments

Comments

@Manj75
Copy link

Manj75 commented Oct 2, 2019

If a filter is used on Archi CI mapping it will not work because it is being added to the URL as a second sysparm_query parameter in addition to the operational_status=1 and is therefore ignored.

without any filter the plugin always adds

&sysparm_query=operational_status=1

If filter as follows is used then the URL will add sysparm_query as shown below:

archi.elements.*.filter = virtual=true
or
archi.elements.cmdb_ci_linux_server.filter = virtual=true

Resulting url will have:

&sysparm_query=operational_status=1,&sysparm_query=virtual=true

Latter virtual filter is ignored by SN

It only works if the filter is added as a logical AND using the caret '^' character, i.e.

&sysparm_query=operational_status=1^virtual=true

Apologies in advance if I missed something and nothing using it correctly.

@herve91 herve91 closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants