Hi All,
I am a new user of Comala workflows and trying to author my own workflow.
I want to be able to send an email to the page author or user who last edited the page when a page is rejected by a reviewer.
Is there a way to read the user name of the person who created/updated the page? I able to send email to the Reviewers group (see towards the end), but not to the author.
Please help.
My workflow so far is as follows:
{workflow:name=MyWorkflow}
{description}
The Publishing Workflow has four states.
Draft: Edited by Staff.
In Review: Reviewed by Managers and Tech writers.
Published: Approved by reviewers and available for users.
Obsolete: Expired after due date that is defined in the workflow parameter.
{description}
{workflowparameter:Reviewers|description=Reviewers group|type=user}
Reviewer1, Reviewer2
{workflowparameter}
{workflowparameter:SetExpiry|description=Sets the date for page expiry|type=duration}
PT1M
{workflowparameter}
{state:Draft|submit=In Review}
{state}
{state:In Review|approved=Published|rejected=Draft}
{approval:Review|selectedapprovers=@Reviewers@}
{state}
{state:Published|final=true|updated=Draft|expired=Obsolete|taskable=true|duedate=@SetExpiry@}
{state}
{state:Obsolete}
{state}
{trigger:pageapproved|approval=Review}
{send-email:user=@Reviewers@|subject=Page ready for your review and approval}
The page @page@ has been drafted by [~@user@] and is waiting for your review and approval.
{pageactivity}
{send-email}
{trigger}
{workflow}
Received this answer from Comalatech:
We don't have a direct value reference to the last user who edited the page, however if you add a trigger like below it will save the last editor to metadata after every edit. To clarify, Confluence only notifies us of a page modification when its saved, so if multiple users edit the page with collaborative editing before saving, this will only store the user who saved it.
{trigger:pageupdated} {set-metadata:Last Editor}@user@{set-metadata} {trigger}
Then use as a value reference like this: "@Last Editor@".
Tried it and it worked for me.
worked for me too. Thank you Travis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Travis.
This worked for me too.
Here is my code:
{trigger:pagecreated}
{set-metadata:Document Author}@user@{set-metadata}
{trigger}
{trigger:pageupdated}
{set-metadata:Document Updater}@user@{set-metadata}
{trigger}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should be able to use @author@ or @creator@ user references to send an email.
Please have a look at the documentation for more information:
https://wiki.comalatech.com/display/CWL/User+references
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
author and creator refer only to the person who first created the page, not to an editor of that page. I haven't been able to find a user reference for that. Any Ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Than https://wiki.comalatech.com/display/CWL/Page+and+User+references use "modifier"
The username of the person who last changed this content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is my code:
{trigger:pagecreated}
{set-metadata:Document Author}@user@{set-metadata}
{trigger}
{trigger:pageupdated}
{set-metadata:Document Updater}@user@{set-metadata}
{trigger}
I set two separate metadata tags for author and updater - so I could use them separately as needed.
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.
Same problem. 'author' and/or 'creator' are not the problem, but the one who edited the page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.