How can I add a comment to an issue (in this particular case via ScriptRunner) without impacting the Updated field? Basically, I use "issueInputParameters.setComment()", but that seems to change the updated date. Also, tried
def oldUpdated = issue.getUpdated()
issueInputParameters.setComment('stuff')
issue.setUpdated(oldUpdated)
You cannot. The IssueUpdatedEvent will fire every time.
With that said, you could avoid the event if you went low-level enough (i.e. re-implement what JIRA does but just omit the event-firing code). But of course this is no easy feat
So, my goal was to use an "escalation service" in ScriptRunner to notify users of ServiceDesk tickets that are 6 days not updated, i.e. category = ServiceDesk AND updated < -6d AND status = "Waiting for customer". Then, requery those that are updated < -7d for an auto-close. However, is doing a issueInputParameters.setComment('stuff'), I mess up the updated date. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This seems as though it would be (would have been?) a really
useful feature (so therefore not one ever likely to make it into
production?)
Issue, as manifested within our instance, is that some people,
not involved in soving any given issue, insist on asking for
"details of any updates" on an issue, which then changes the
Updated date, so as to make it look as though there HAS been
a "technical" Update, in respect of the actual issue - Deep Sorrow!
As welll as the two existing classes of comment
Add internal note
Reply to Customer
which merely trigger different distribution lists, it would
be really useful to have some kind of say,
Administrivia
comment class, that wouldn't change the Updated date/time,
along with, perhaps, an additional "date/time" field that
would track the administrivia updates for the people who
want to track that "non-technical" info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I doubt you can. It probably records the data/time the database is updated. Have you seen any update that isn't reflected in the updated date?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strange that the API provides a setter but it seems to either ignore it, or setting the update date to a specific value sets the update date again to the current date?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.