-
Notifications
You must be signed in to change notification settings - Fork 35
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
Failed validating errors #20
Comments
Probably needs this PR completed #18 |
I don't think #18 would fix this. This should be fixed by expanding the payload schema to allow (possibly empty) arrays/lists for the Something like this: fix_versions:
type:
- string
- array
items:
type: string The tricky part will be how to handle that value being either a string or an array in rules, but that will be specific to each organization's version of Jira (presuming that @SimplySeth Please try that fix locally (you should edit the |
@blag I applied your fix and it worked but then i hit another schema validation failure issue on key ---
class_name: "JIRASensor"
entry_point: "jira_sensor.py"
description: "Sensor which monitors JIRA for new tickets"
poll_interval: 30
trigger_types:
-
name: "issues_tracker"
description: "Trigger which indicates that a new issue has been created"
payload_schema:
type: "object"
properties:
project:
type: "string"
issue_name:
type: "string"
issue_url:
type: "string"
created:
type: "string"
assignee:
type:
- string
- object
fix_versions:
type:
- string
- array
items:
type: string
issue_type:
type: "string"
|
@sahilsk Glad you got it working with this patch. What version of Jira are you running? |
@blag
|
st2 2.9.1, on Python 2.7.6
(docker container)I have a rule like below ...
it looks like the rule is trying to run but there are no enforcements and I get the error below in
/var/log/st2/st2sensorcontainer.log
:st2 trigger-instance list --trigger=jira.jira001
produces an empty resultThe text was updated successfully, but these errors were encountered: