I have a transition that when executes, it prompts a blank comment screen to come up and force the user to leave a comment. Is there a way to Pre-populate comment screen with "Approved by {USER} ON {TIMESTAMP}" (ex: Approved By John Smith on 1/25/19 1:05PM)
You can definitely get this done with Automation for Jira using the trigger for when the issue is transitioned, edit issue function, and smart values.
Doesn't the issue history record the approver and time of approval if you use the approval function, though? I might be wrong about this but it's what I remembered.
I should clarify, we are not using the service desk, I am just naming the transition approved.
Is there a way to achieve this with scriptrunner, or just within JIRA?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With Scriptrunner you could follow something from this post:
Have a post function for that transition that adds the assignee and date. Pretty sure you can add some text in there too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the fantastically quick reply.
I looked into the link, but I am not sure how I would get this configured in the cloud version of scriptrunner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the adaptavist library (you'll need to create a username) there's this code:
https://library.adaptavist.com/entity/update-the-value-of-a-custom-field-in-jira
You could use similar code to this as a scripted post function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not quite what I am looking for.
DO i need to go through all this still if I would settle for the same static text string on every comment?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Patrick Cartier [Candylio] , @Eric Blumberg ,
I am looking for exactly the same "hack" and unfortunately, the link provided is no longer valid. Could you by any chance remember and tell me how this is done?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.