Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
patch for search issues by key using JIRA issuePicker rest API. #3
Conversation
Added search_for_issue_by_key method in forked JIRA class
730f686
to
8067993
|
Added method in forked version JIRA class. Follow up PR of loggly/fronted (https://github.com/loggly/frontend/pull/6836) |
| https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getIssuePickerResource | ||
| ''' | ||
| JIRA_API_ISSUE_SEARCH = "/rest/api/2/issue/picker" \ | ||
| "?showSubTasks=true&showSubTaskParent=true¤tJQL=&query=" |
tgrrtt
Oct 6, 2016
All of these querystrings should be parameterized.
All of these querystrings should be parameterized.
duttly
Oct 6, 2016
@tgrrtt There is no current plan to tweak the parameters, or expose them in some form. Keeping it simple for now.
@tgrrtt There is no current plan to tweak the parameters, or expose them in some form. Keeping it simple for now.
| JIRA_API_ISSUE_SEARCH = "/rest/api/2/issue/picker" \ | ||
| "?showSubTasks=true&showSubTaskParent=true¤tJQL=&query=" | ||
| search_url = "{}{}{}".format(self._options["server"], JIRA_API_ISSUE_SEARCH, search_key) | ||
| search_result = self._session.get(search_url) |
sirsgriffin
Oct 6, 2016
Shouldn't this attempt adhere to the current convention in this module of using self._fetch_pages()?
Shouldn't this attempt adhere to the current convention in this module of using self._fetch_pages()?
tgrrtt
Oct 6, 2016
I think the other search functions take pagination params.
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getIssuePickerResource
Doesn't seem to be paginated
I think the other search functions take pagination params.
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getIssuePickerResource
Doesn't seem to be paginated
tgrrtt
Oct 6, 2016
As it's not an actual "search"
As it's not an actual "search"
duttly
Oct 6, 2016
Correct, no pagination. It returns N results (divided in 2 sections), we have no control of N or the split.
Correct, no pagination. It returns N results (divided in 2 sections), we have no control of N or the split.
Added search_for_issue_by_key method in forked JIRA class