Access both last comment and transition comment on a post-function
I'm trying to get both "Last comment" value and "Transition's Comment" on advanced parsed text, but these two values seem to be the same when the user adds something on the transition's comment.
Is there a way to achieve this?
Comments (9)
-
repo owner -
reporter Thanks for the suggestion Fidel I'll give it a try.
Any way to filter this list of comments in order to pinpoint a specific comment, e.g. submitted by the Reporter? I which we could use "Last commenter" to verify if it's a comment coming from reporter.
-
repo owner The following boolean expression returns true only if last comment different from transition comment fulfills any of the following two conditions:
- was created by the reporter and later not edited later
- was edited and its last editor is the reporter
count(allCommenters()) > 0 IMPLIES last(allCommenters()) = %{00006}
-
reporter So allCommenters() is returning an ordered list of users based on comment creation or update timestamp? Cool. Going to try it.
Thanks Fidel.
-
repo owner - changed status to resolved
Aggelos, I close the issue. Please, reopen it if you need more support on the same subject.
-
reporter - changed status to open
Hi Fidel,
I have trouble applying your last suggestion. I believe the allCommenters() method returns a distinct list of comment authors, so just getting the last item from list is not really retrieving the actual last commenter of the issue. So in my case the expression is always false.
Any ideas?
Thanks, AP
-
repo owner Hi Aggelos,
Sorry, you are right. You can use version 2.2.9_beta_3 which returns commenters and updaters by order of actuation. This version of the plugin only solves a pair of small bugs, so you can use it in production environment if you wish to.
-
reporter Hi Fidel,
the new version works nice. Thanks again.
-
repo owner - changed status to resolved
Fixed in just released version 2.2.9.
- Log in to comment
Hi Aggelos,
The following text to be parsed in advanced mode returns the last comment different from transition comment: