Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger webhook filter by project property not working

Tamar November 22, 2022

I try to use project property in atlassian-connect.json file but it's not working
it ignore the filter and trigger for all issueTypes.
Here is my code: 

    "webhooks": [
        {
            "event": "jira:issue_created",
            "filter": "issueType = project.property[config].issueType",
            "url": "requirements/issue-hook",
            "excludeBody": false
        }
    ],
    "jiraEntityProperties": [{
        "key": "jira-project-indexing",
        "name": {
            "value" :"project index",
            "i18n": "project.index"
        },
        "entityType": "project",
        "keyConfigurations": [{
            "propertyKey" : "config",
            "extractions" : [{
                "objectName" : "issueType",
                "type" : "string"
            }]
        }]
    }],

When I did this rest call: /rest/api/3/{{projectId}}/properties/config
I get the following json> {

"key": "config",
"value": {
    "issueType": "Task"}

}

However the event is triggered for each issueType and not only for Task
If I did it directly such as :

“filter”: “issueType =Task”

,
it works well - triggered only for issue of type Task.
any idea?

Thanks

1 answer

0 votes
Tamar November 23, 2022

answer my own question:

comparing two properties is not supported in JQL

Suggest an answer

Log in or Sign up to answer