Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Key of the "Linked Issue" in Email body - "Keys of linked issues" field CODE not working on 'Create'

Nikhil
Contributor
October 29, 2019

How to get the key of a linked issue in the email body when you use "Send an email" post-function by "JWT" - On Create Transition

 

I've tried this so far: In the 'Email's Body', to the text I've added the field code for the linked issue "Keys of linked issues - [text] - %{00098}" from the 'Field Code Injector' dropdown but it doesn't look like it is working.

I placed the 'Send an email' post-function at the bottom of the list. I got all the text in the email but not the linked issue key. 

1 answer

1 vote
Thorsten Letschert _Decadis AG_
Atlassian Partner
October 30, 2019

Hi @Nikhil ,

an ad-hoc test for your scenario has been successful given the following configuration:

send-mail.PNG

How does your exact configuration look like?

Cheers
Thorsten

Nikhil
Contributor
October 30, 2019 edited

Hi Thorsten, Thanks for the reply. 

My configuration looks like this: 

Screen Shot 2019-11-18 at 11.32.38 AM.png

Every other field code I added in the email settings works except the '%{Keys of linked issues}'. 

Thorsten Letschert _Decadis AG_
Atlassian Partner
November 4, 2019

Hi @Nikhil ,

the issue link is already set when sending the email?

Nikhil
Contributor
November 18, 2019

Hi @Thorsten Letschert _Decadis AG_ 

We are using create issue post-function in a different project which auto creates this issue and links it back to the original issue. The post-function for sending an email is on the create transition of the automated issue. 

So yes, the issue link is already set before sending the email. 

I see the problem only when the ticket is getting created automatically.

When I manually create the ticket and add linked issue on create screen, it successfully adds the %{keys of linked issues} value to the email body.

Suggest an answer

Log in or Sign up to answer