Issue Key field not pulling into emails
We have a post function to send email with parameters. We have the %{Issue key} in both the subject and the body of the email but the key is not showing in our emails. We have other fields and they do show.
Email Body: Dear Approver The issue %{Issue key} has been submitted for approval with an estimated LOE of %{ETC} hours with a due date of %{Due date}. Please approve/reject this request. If you approve the Job Jar item it will be sent to the VP Approval step.
%{JIRA base URL}/browse/%{Issue key}
Description of Job Jar Item %{Description}
What we get: Dear Approver The issue [missing key] has been submitted for approval with an estimated LOE of 39 hours with a due date of 24/Mar/17. Please approve/reject this request. If you approve the Job Jar item it will be sent to the VP Approval step.
https://jira.tekstream.com/browse/[missing key]
Description of Job Jar Item some description of the job
Comments (3)
-
repo owner -
reporter I moved it after the create issue post function and the key worked. Consider closed.
-
reporter - changed status to resolved
moving the script after the "creates the issue" resolved the issue.
- Log in to comment
Hi,
If you are using "Send an email" in transition "Create Issue", please ensure that you are executing it AFTER post-function "Creates the issue originally", otherwise issue key is not yet set.
Please, let me know whether this is the cause of your problem.