gl_list_issues {gitlabr} | R Documentation |
Get issues of a project or user
Description
Get issues of a project or user
Usage
gl_list_issues(
project = NULL,
issue_id = NULL,
verb = httr::GET,
api_version = 4,
...
)
gl_get_issue(project, issue_id, ...)
Arguments
project |
id (preferred way) or name of the project. Not repository name. May be null for all issues created by user. |
issue_id |
optional issue id
(projectwide; for API v3 only you can use global iid when api_version is |
verb |
ignored; all calls with this function will have |
api_version |
a switch to force deprecated GitLab API v3
behavior that allows filtering by global iid. If |
... |
further parameters passed on to |
Details
gl_get_issue
provides a wrapper with swapped arguments for convenience, esp. when
using a project connection
Value
Tibble of issues of the project with descriptive variables.
Examples
## Not run:
# Set the connection for the session
set_gitlab_connection(
gitlab_url = test_url,
private_token = test_private_token
)
# list issues
gl_list_issues("<<your-project-id>>", max_page = 1)
# list opened issues
gl_list_issues("<<your-project-id>>", state = "opened")
# Get one issue
gl_get_issue("<<your-project-id>>", issue_id = 1)
# Create new issue
gl_new_issue("<<your-project-id>>",
title = "Implement new feature",
description = "It should be awesome."
)
# Assign user to issue 1
gl_assign_issue("<<your-project-id>>", issue_id = 1, assignee_id = "<<user-id>>")
## End(Not run)