@shipfox/api-integration-jira 12.3.0 → 12.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/api-integration-jira",
3
3
  "license": "MIT",
4
- "version": "12.3.0",
4
+ "version": "12.4.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -100,7 +100,7 @@ describe('Jira dynamic webhook API', () => {
100
100
  mocks.warn.mockReset();
101
101
  });
102
102
 
103
- it('registers the six curated events with the access token', async () => {
103
+ it('sends the six curated events with the configured JQL filter', async () => {
104
104
  mocks.post.mockReturnValue(
105
105
  resolves({webhookRegistrationResult: [{createdWebhookId: 123, errors: []}]}),
106
106
  );
@@ -130,7 +130,7 @@ describe('Jira dynamic webhook API', () => {
130
130
  'comment_updated',
131
131
  'comment_deleted',
132
132
  ],
133
- jqlFilter: '',
133
+ jqlFilter: 'project != null',
134
134
  },
135
135
  ],
136
136
  });
package/src/api/client.ts CHANGED
@@ -8,7 +8,8 @@ const JIRA_API_TIMEOUT_MS = 10_000;
8
8
  const SCOPE_SEPARATOR_RE = /[,\s]+/;
9
9
  const TRAILING_SLASHES_RE = /\/+$/;
10
10
  export const JIRA_DYNAMIC_WEBHOOK_EVENTS = jiraWebhookEventNames;
11
- export const JIRA_DYNAMIC_WEBHOOK_JQL = '';
11
+ // Jira rejects an empty dynamic-webhook filter; every issue belongs to a project.
12
+ export const JIRA_DYNAMIC_WEBHOOK_JQL = 'project != null';
12
13
 
13
14
  export interface JiraAuthorization {
14
15
  accessToken: string;