Description Usage Arguments Value Author(s) See Also Examples
These functions implement Redmine API calls to work with issues.
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)
|
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 |
id of the created issue for redmine_create_issue
Maxim Nazarov
http://www.redmine.org/projects/redmine/wiki/Rest_Issues
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.