You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_manager = new RedmineManager(Host, apiKey);
var parameters = new NameValueCollection { { RedmineKeys.INCLUDE, RedmineKeys.JOURNALS}, { RedmineKeys.INCLUDE, RedmineKeys.NOTES } };
var issue = _manager.GetObject<Issue>(issueId, parameters);
issue.Notes = note;
_manager.UpdateObject(issueId, issue);
var updatedIssue = _manager.GetObject<Issue>(issueId, parameters);
return Ok(updatedIssue);
}`
I dont get any errors but it does not seem to add a new journal/note to the issue if I check it through the redmine website.. Did I miss something in the code? Or is it possible to add and create a new journal to an issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm working with your Redmine api and I'm trying to add a new journal/note to an issue with the code below
` [HttpPut("addNote/{issueId}")]
public IActionResult AddNote(string issueId, string note)
{
string apiKey = Request.Headers["Authorization"];
apiKey = apiKey.Replace(""", "");
I dont get any errors but it does not seem to add a new journal/note to the issue if I check it through the redmine website.. Did I miss something in the code? Or is it possible to add and create a new journal to an issue?
Beta Was this translation helpful? Give feedback.
All reactions