View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0011274||mantisbt||api soap||public||2009-12-08 16:47||2015-08-10 05:49|
|Summary||0011274: mc_issue_note_add function not honoring CreationDate|
When calling the mc_issue_note_add() with an IssueNoteData object, the 'creationDate' field is not being set properly.
|Steps To Reproduce|
Using vb.net (for simplicity at the moment), create the note object and insert it:
mantNote.date_submitted = 0000001/1/2008 01:00:00#
If you run this code today (for example, 12/10/2009), the resulting note in Mantis will have the insert date instead of the explicitly supplied creation date.
|Tags||No tags attached.|
The bugnote_api does not offer a way of passing in and I'm wary of changing the api right now.
If we ever enable the ability to provide creation time to enable some migration scenarios, then we should limit such functionality to administrator accounts.
This problem seems also apply to the reporter supplied. The reporter of the comment is always set to the account used to connect to the SOAP API.
(In reply to comment 0011274:0032809)
This should work actually, I've double-checked the code. Please open a new issue if you can't set the reported by e.g. passing in a reporter (id = 12) object to the mc_issue_add function.
@rombert I think anroy was referring to changing the reporter of a <b>note</b>, not the reporter of an issue. I can confirm that the following does not work in Mantis 1.2.19:
a) Changing the date_submitted and last_updated when using the mc_issue_add function
I still think that this is a 'good thing'.
As far as I know the web UI does not allow you to change these values. If there is something that is possible from the web UI and restricted from the SOAP API I'm happy to fix it.
|2009-12-08 16:47||coyttl||New Issue|
|2009-12-08 18:18||rombert||Status||new => assigned|
|2009-12-08 18:18||rombert||Assigned To||=> rombert|
|2010-02-19 16:34||rombert||Note Added: 0024445|
|2010-02-19 16:34||rombert||Assigned To||rombert =>|
|2010-02-19 16:34||rombert||Priority||normal => low|
|2010-02-19 16:34||rombert||Status||assigned => acknowledged|
|2011-10-22 22:34||vboctor||Note Added: 0030030|
|2011-12-15 01:47||atrol||Relationship added||related to 0011280|
|2011-12-15 01:48||atrol||Relationship added||related to 0013677|
|2012-09-07 03:46||anroy||Note Added: 0032809|
|2012-09-09 17:40||rombert||Description Updated||View Revisions|
|2012-09-09 17:40||rombert||Steps to Reproduce Updated||View Revisions|
|2012-09-09 17:43||rombert||Note Added: 0032815|
|2013-05-04 02:47||vboctor||Relationship added||related to 0012541|
|2015-08-05 14:23||fourcube||Note Added: 0051203|
|2015-08-10 05:49||rombert||Note Added: 0051221|