I would like to add Issue Status and Issue Resolution to email subject line in Jira, but I don't know how to do it. Any help would be really appreciated.
Thanks in advance :)
Community moderators have prevented the ability to post new answers.
You will get more answers if you ask this as a seprate question . :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Mark, that worked for me.
I edit all the files and they work as expected. There was also one more template which I left alone "issuementioned.vm"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A couple of observations, expanding on Mizan's answer and incorporating the comments:
1) By default, there are 17 separate velocity templates that are used for email subjects.. one for each event type.
2) Start adding custom events (with custom templates) and you may get a few extra.
3) "issueupdated.vm" is for the update event... "An issue has had its details changed". In other words, an Edit.... something like a tweak to component or description.
4) With reference to the comment "But when i created a issue...", you won't see any affect in the subject line of emails generated when creating an issue unless you change "issuecreated.vm".
5) I recommend testing with one event type first and then, when you are happy, use the format in the other templates. I took this approach after upgrading to JIRA v4.x. I took the default:
($issue.key) $issue.summary
and tweaked it to:
$eventTypeName ($issue.key) $issue.summary
6)The template filtersubscription.vm is the exception to the above, using a different format.
7) There is no need to restart the JIRA service after editing these template files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will have to edit the WEB-INF\classes\templates\email\subject\issueupdated.vm .
I am not sure but try adding the below code in the file
$issue.status $issue.resolution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
But still am not able add issue status in jira email.can u give another solution,if possible
I have edited WEB-INF\classes\templates\email\subject\issueupdated.vm
"$eventTypeName: ($issue.key) $issue.summary
$issue.status
$issue.resolution
"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok , try
$issue.statusObject.name
$issue.resolutionObject.name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
Again am not getting any issue status in mail from jira,can you give any other solution for this
"$eventTypeName: ($issue.key) $issue.summary
$issue.statusObject.name
$issue.resolutionObject.name
"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you updating an issue ?
This should have worked , try restarting Jira .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have restarted jira,But when i created a issue,along with issues details,issue status(open,inprogress,fixed,closed) is reflecting on mail generated by jira
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What happens when you edit the issue or add a comment ? do you see the status and resolution on the subject ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sorry for above mail,A little change
I have restarted jira,But when i created a issue,along with issues details,issue status(open,inprogress,fixed,closed) is not reflecting on mail generated by jira
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
${issue.statusObject.name}
${issue.resolutionObject.name}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great , You can accept the answer by clicking on the tick mark on the right side of the answer . you can even vote up :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
am getting status on subject,how i can get status update in text of mail and also for PRIORITY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, HOW TO ADD ISSUE STATUS AND ISSUE RESOLUTION TO EMAIL Text IN JIRA AND ALSO FOR PRIORITY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have a look at this doc . you may find it helpful .
I have not tried this earlier , edit atlassian-jira/WEB-INF/classes/templates/email/text/includes/issuesummary.vm and add the below code
#if ($issue.statusObject)
>$stringUtils.leftPad($issue.statusObject.name, $padSize): $issue.statusObject
#end
#if ($issue.resolutionObject)
>$stringUtils.leftPad($issue.resolutionObject.name, $padSize): $issue.resolutionObject
#end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.