I have created custom field for input textbox and associated with one of transition screen.
After executing transition action, i need this custom field value to be added on comment of that issue.
I could not find any related post condition or even - "copy from other" also does not show "comment" in destination field.
please suggest how it could be possible.
same question here
https://answers.atlassian.com/questions/163707/custom-field-value-to-comment
and also check this
https://answers.atlassian.com/questions/152004/groovy-post-function-create-add-comment-with-custom-field-value
Hi,
Jira Workflow Toolbox-Plugin has a workflow post function called "Add a comment". This is exactly doing what you describe above.
The plugin is not free, it is commercial.
Cheers
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for sharing.
I need free one only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can write your own postfunction. see https://developer.atlassian.com/display/JIRADEV/Workflow+Plugin+Modules#WorkflowPluginModules-Functions
Issue issue=transientVars.getIssue(); Object var1=issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("<your text field>")); JiraAuthenticationContext authContext=ComponentAccessor.getJiraAuthenticationContext(); if(var1!=null) { ComponentAccessor.getCommentManager().create(issue,authContext.getLoggedInUser().getName(),var1.toString(),false); ComponentAccessor.getIssueManager().updateIssue(authContext.getLoggedInUser() , issue, EventDispatchOption.EventDispatchOptionImpl.ISSUE_UPDATED , false); ComponentAccessor.getIssueIndexManager().reIndex(issue); }
you can put the above code and check in execute() method of workflow postfunction module.
Also see http://www.j-tricks.com/1/post/2010/08/workflow-post-function.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Or directly execute your given code in jira administrator somewhere to allow me to appear post condition script execution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this not possible to do this directly on jira administroator UI...?
i don't want do create any plugin or code for that.
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.