[OJS 3] How to get submisison ID in email template

Hello all, @asmecher, @NateWr, @ctgraham,

Upgrading to OJS 3 has brought a significant issue.
Our email templates in OJS 2 had submission data in it, in order for us to find the submission more easily, such as {$submissionId} - {$submissionTitle} within subject and body.

OJS 3 only has the article title, and neither {$submissionId} or {$submissionID} is recognized as a suitable variable.

Which one is it?

Hi @ramon,

See ID of article in Workflow page - #10 by asmecher.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello all,

The {$submissionId} works.
What’s confusing is that it is not treated like the other variables, such as {$contextName}, {$submissionTitle}. When we’re sending the email, those variables are shown grayed out without the conversion, while {$submissionId} was showing as plain text. Then, somehow, it get’s converted.

Hi @ramon,

That’s going to be an issue in how the email editing fields work. In order to get the greyed out bit, the data needs to be passed into the editor, and it’s probably missing.

This is one of the pain points we’re planning to improve as part of our email/notification work planned for 3.3/3.4/3.5. You can see an overview of some of this work at Improvements to email selection, draft, preview and send during workflow · Issue #5717 · pkp/pkp-lib · GitHub.

Hello all, @asmecher , @NateWr ,

The variable {$submissionId} is not being displayed in the subject. Only in the template body.
This is happening in email sent from reviewers to editors regarding un/availability to review (REVIEW_CONFIRM or REVIEW_DECLINE).
Other emails area apparently working.
Any solutions on the way?

This is only added in some emails. As part of the work for 3.4 that I linked above, we’re hoping to get this variable working in all email templates where it is appropriate.