-
Type:
Suggestion
-
Resolution: Won't Fix
-
Component/s: Integration - Webhooks
-
1
Issue Summary
As per official documentation https://developer.atlassian.com/cloud/jira/platform/webhooks/#supported-jql-queries the custom fields are not supported - it would be nice to be able to use custom fields in JQL queries for webhooks.
Issue was cloned from https://ecosystem.atlassian.net/browse/ACJIRA-2701 in order to address it more precisely and quicker.
Hi Team,
I am trying to create a webhook for my Connect App with JQL filter using custom fields. I am not completely sure if custom fields are supported in the JQL, however I am aware of other connect apps that somehow support custom fields in the JQL filter for webhooks.
Following is my request body:
{
“url”: “https://9320-3c20-f1aa.ngrok-free.app/api/appsync/jiraconnect/”,
“webhooks”: [
{
“jqlFilter”: “project = 10011 AND Pod = Infra”,
“events”: [“jira:issue_created”, “jira:issue_updated”, “jira:issue_deleted”]
}
]
}
Here “POD” is the custom field. I also tried “jqlFilter”: “project = 10011 AND cf[10042] = Infra”, where 10042 is my POD custom field ID.
??We received the following errors:
{‘webhookRegistrationResult’: [\{‘errors’: [‘Clause POD is unsupported’]}]}
{‘webhookRegistrationResult’: [{‘errors’: [‘Custom fields with ids: 10042 are not supported by the JQL matcher’]}]}
Steps to Reproduce
- Create a Connect app with Webhook using Custom Field named "POD" JQL Filter
Expected Results
JQL Filter works
Actual Results
It results in an error saying that clause "POD" is not supported
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available