Skip to content

Commit 772549a

Browse files
fix(dso-7nos): fix JQL date format for Jira Cloud compatibility
Jira JQL accepts 'yyyy-mm-dd HH:mm' (space separator, no seconds, no timezone suffix) but we were sending ISO 8601 format with T separator and Z suffix which Jira rejects with "date value is invalid". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 07a7550 commit 772549a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/dso/scripts/bridge-inbound.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ def fetch_jira_changes(
132132
dt = datetime.fromisoformat(last_pull_ts.replace("Z", "+00:00"))
133133
buffered_dt = dt - timedelta(minutes=overlap_buffer_minutes)
134134

135-
# Format as Jira JQL datetime string (UTC)
136-
buffered_ts_str = buffered_dt.strftime("%Y-%m-%dT%H:%M:%SZ")
135+
# Format as Jira JQL datetime string — Jira accepts 'yyyy-mm-dd HH:mm'
136+
# (space separator, no seconds, no timezone suffix).
137+
buffered_ts_str = buffered_dt.strftime("%Y-%m-%d %H:%M")
137138

138139
# Build JQL — sanitize project to block JQL injection
139140
jql = f'updatedDate >= "{buffered_ts_str}"'

0 commit comments

Comments
 (0)