Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there any way to select Pre-configured Canned Responses during workflow transition(Screen)

Is there any way to select Pre-configured Canned Responses during workflow transition(Screen) such that users could be able to select appropriate Canned Response during workflow transition itself.

4 answers

1 vote
Deleted user Feb 25, 2015

Perhaps you will find our add-on Canned Responses for JIRA helpful. It is not triggered by transitions but does work well with JIRA and JIRA Service Desk

You can compose pre-defined responses for global, project specific or personal use (personal templates are free to use). Except for saving copy-paste time you have auto-fill of issue specific information like reporter name, assignee name, issue key, project key and many others including custom fields.

Hi Swetha,

What do you mean by 'canned responses'? Do you mean something like automatic responses when a certain workflow transition has been taken?

Hi Swetha,

First of all I think this is not really a Service Desk related question, but more of a JIRA workflow solution.

8) The script will look something like this (might contain syntax errors):

import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.customfields.CustomFieldType
import com.atlassian.jira.issue.fields.CustomField
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.comments.CommentManager
 
ComponentManager componentManager = ComponentManager.getInstance()
CustomFieldManager customFieldManager = componentManager.getCustomFieldManager()
CustomField cf = customFieldManager.getCustomFieldObject("customfield_10300") // This is the id of your select list custom field  
Object commentType = issue.getCustomFieldValue(cf)
 
// Check which comment was selected by the operator 
String comment = "";
if(commentType.equals("comment1")) {
    comment = "This will be the first comment"; // Place your text here
} else if(commentType.equals("comment2")) {
    comment = "This will be the second comment"; // Place your text here    
} else {
    comment = "This will be a default comment"; // Place your text here
}

// Add comment 
CommentManager commentManager = ComponentAccessor.getCommentManager();
commentManager.createComment(issue, "author", comment, true); // 'true' will throw an event when the comment is added

A new comment will be added to this issue when this workflow transition is taken. Since all comments in the issue are also directly visible in Service Desk, the customer/client will also see the canned response there.

Hope this helps?!

Hi Swetha,

This is a way to do it:

1) Setup your Service Desk and link it to your project

2) Create a workflow (or multiple worflows) for all issues that need this pre-configured comments. Make a workflow scheme and add the scheme to your Service Desk project

3) Create a custom field of type Select List (single choice) and add all the options you need (in this example comment1 and comment2)

4) Create a new custom screen and add the custom field from step 3 to it. This screen will be used during a workflow transition to allow the users to select the comment

5) Goto your workflow, select the transition where the comment has to be entered, click the edit button and select the screen from step 4. Whenever this transition is taken JIRA will first display a screen to the user where he can select the comment he want. The screen will also have a comment field, but that is inevitable.

6) Install the script runner plugin. This will add a new post-function that can be added to your transition where you can execute a Groovy script. This script will check the combo box choice and add the required comment.

7) Add a Script Post-Function to the workflow transition and write a custom script for this transition. You can point to this script in the Script file path field.

I believe he means just some predefined paragraph to add to the comment that the user can later edit to customize the response. It helps to give nice standarized responses to common situations

Canned Responses is a feature of Email this issue plugin. Here we can configure messages and in an issue when you click on Email button it prompt you to pick one of the preconfigured canned message. Like that do we have any solution to pick these canned responses during the workflow transtion

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

976 views 31 33
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you