Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Using Groovyscript to query and insert issue key in email message Edited

Hi there

I am using JIRA Suite Utilities to perform a post-function on a transition. When an assignee transitions a ticket to the next workflow, I would like to email the asignee with a short message along the lines of 

Hi 

Now [Issue Key] is implemented, please complete the post-implementation review.

 

The post-function allows me to use a groovyscript, but I have no experience (am a total noob) with groovyscript and I am not sure how to use this script so it imbeds the issue key in the middle of the body text.

Can anyone help?

Best wishes

1 answer

1 accepted

1 vote
Answer accepted

Hello, 

In order to get the issue key you can put this in the 'Conditions and Configurations' section, assuming you're using the built-in post function to send emails. 

config['key'] = issue.key

You can then access that issue key by using '$key' in the template section. 

If you can't get this to work or aren't using the built in script, please send me a screenshot of what you have currently so I can better know what you need to do. 

Hopefully this helps!
Jenna 

Thanks very much Jenna!

For anyone out there reading this, below is how I am doing this, using the JIRA misc workflow extensions plug-in. This is available by editing a transition, then going to post-functions and selecting to send a notification email:

 

A notification email will be sent with the following contents:

Subject: ${issue.getKey()} has been implemented. Please complete post-implementation review

HTML body:

Text body: Hi ${issue.assignee.displayName} Now that ${issue.getKey()} has been implemented, please complete the post-implementation review on the RFC. This should be done within two working days. Yours sincerely Change Manager

Recipients:

Issue members: Assignee

Users from fields:

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Share your Confluence Cloud experience for a chance to win $500!

Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...

240 views 5 13
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