Commit aa82699
ROX-33193: Jira Cloud support (#64)
* feat: add Jira Cloud support with go-atlassian v2.3.0
Migrate from andygrunwald/go-jira to ctreminiom/go-atlassian v2.3.0
to support Jira Cloud instances that require the new /rest/api/3/search/jql
endpoint. The old /rest/api/[2|3]/search endpoints were deprecated and
removed from Jira Cloud (effective May 1, 2025).
Key changes:
- Replace go-jira with go-atlassian v2.3.0
- Use SearchJQL() method for new /search/jql endpoint
- Support Basic Auth with email + API token (required for Jira Cloud)
- Use Atlassian Document Format (ADF) for issue descriptions and comments
- Request summary field explicitly in search to fix nil field issue
Fixes issue search and comment creation for Jira Cloud instances.
Related: ctreminiom/go-atlassian#345
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Convert issue and comment templates to Atlassian Document Format (ADF)
Jira Cloud no longer supports Wiki Markup formatting and requires
Atlassian Document Format (ADF) for issue descriptions and comments.
Changes:
- Remove Wiki Markup template (desc constant)
- Implement buildADFDescription() to generate proper ADF structure
- Use ADF for both issue creation and comment creation
- Add proper ADF node types: heading, codeBlock, table, paragraph
- Fix empty field handling: use space for empty BUILD TAG and ORCHESTRATOR
to ensure text nodes always have the required 'text' field
- Update description() return type from string to *models.CommentNodeScheme
- Update newIssue() to accept ADF description directly
The ADF structure includes:
- H3 headings for each section (Message, STDERR, STDOUT, ERROR)
- Code blocks with language="text" for test output
- Table with bold headers for Build Information
- Proper text nodes with marks for links and formatting
This fixes the "INVALID_INPUT" error that occurred when creating
comments with empty table cells, which was caused by text nodes
missing the required 'text' field.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Update tests to use go-atlassian models instead of go-jira
Fix test compilation errors after migrating from go-jira to go-atlassian:
- Update imports from github.com/andygrunwald/go-jira to go-atlassian models
- Replace jira.Issue with models.IssueScheme
- Replace jira.IssueFields with models.IssueFieldsScheme
- Update TestDescription to verify ADF structure instead of Wiki Markup
- Verify ADF node types, headings, code blocks, and tables
- Test truncation functionality with ADF format
All tests now pass successfully.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Apply suggestions from code review
Co-authored-by: Marcin Owsiany <marcin@owsiany.pl>
* docs: add Jira API token documentation
Add authentication documentation to README and include the API token URL
in the error message to help users obtain their credentials.
Addresses PR feedback requesting token URL documentation.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Marcin Owsiany <marcin@owsiany.pl>1 parent e074d1b commit aa82699
6 files changed
Lines changed: 406 additions & 126 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
0 commit comments