Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ jira: created time and improved search #4496

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

slntopp
Copy link
Member

@slntopp slntopp commented Aug 7, 2024

  1. Adding created field to atlassian.jira.issue
  2. Max results parameter defines maximum amount of issues that will be found by search, but API uses cursor style pagination and depending on the Jira instance returns 50 or 100 results per page. Therefore we must iterate to actually get all issues

Before:

$ cnquery providers | grep atlassian
  atlassian 11.0.24 with connectors: atlassian
$ cnquery run atlassian jira --host https://myjira.atlassian.net -c 'atlassian.jira.issues.length'
atlassian.jira.issues.length: 100

After:

$ go run apps/cnquery run atlassian jira --host https://myjira.atlassian.net -c 'atlassian.jira.issues.length'
atlassian.jira.issues.length: 311

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @slntopp

@chris-rock chris-rock merged commit 3766cbd into main Aug 7, 2024
15 checks passed
@chris-rock chris-rock deleted the mik/jira/created-time-and-improved-search branch August 7, 2024 12:51
@github-actions github-actions bot locked and limited conversation to collaborators Aug 7, 2024
@slntopp slntopp linked an issue Aug 7, 2024 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add missing date information to the atlassian.jira.issue resource
2 participants