Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Trigger webhook filter by project property not working

Tamar November 22, 2022 edited

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
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events