redmine_create_issue: Create/update/delete issue

Description Usage Arguments Value Author(s) See Also Examples

Description

These functions implement Redmine API calls to work with issues.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
redmine_create_issue(project_id, subject, description = NULL,
  files = NULL, tracker_id = NULL, status_id = NULL,
  priority_id = NULL, category_id = NULL, fixed_version_id = NULL,
  assigned_to_id = NULL, parent_issue_id = NULL,
  custom_fields = NULL, watcher_user_ids = NULL, is_private = NULL,
  estimated_hours = NULL, ...)

redmine_update_issue(issue_id, notes = NULL, project_id = NULL,
  tracker_id = NULL, status_id = NULL, subject = NULL,
  private_notes = FALSE, files = NULL, ...)

redmine_delete_issue(issue_id)

Arguments

project_id

Project id to add issue to

subject

Issue subject (title)

description

Issue description

files

List of filenames to add (upload) to the issue

tracker_id

Tracker id(s)

status_id

Status id

priority_id

Priority id

category_id

Issue category id

fixed_version_id

Target Version id

assigned_to_id

User id to assign to

parent_issue_id

Parent issue id

custom_fields

Custom fields, as list, see examples

watcher_user_ids

User id(s) to add as watchers

is_private

Whether the issue is private

estimated_hours

Estimated number of hours

...

Further parameters

issue_id

Issue id

notes

Notes (comments) to add

private_notes

Private notes to add

Value

id of the created issue for redmine_create_issue

Author(s)

Maxim Nazarov

See Also

http://www.redmine.org/projects/redmine/wiki/Rest_Issues

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
# first get necessary ids
projectID <- redmine_search_id("testProject", 
    endpoint = "projects")

urgentID <- redmine_search_id("Urgent", 
    endpoint = "issue_priorities")

# now create issue
issueID <- redmine_create_issue(
    project_id = projectID, 
    subject = "Urgent task", 
    description = "Do it quick!", 
    priority_id = urgentID,
    files = "details.txt")

# modify using custom fields
redmine_update_issue(issueID, 
    custom_fields = list(
        list(id = 1, name = "myField", value = 100),
        list(id = 2, name = "myField2", value = 200)
    )
)   

## End(Not run)

openanalytics/redmineR documentation built on June 8, 2019, 8:29 a.m.