email notification in user macro

I created a user macro that can be used to mark the status of a proposal. At my workplace, a proposal needs to be seen by several people during various stages of its development. I've added a username parameter to the macro so that the creator of the proposal can add the usernames of the people involved in the approval process.

However, the email notification functionality doesn't work. Is there anything that I've done in my code that would cause it to stop working? Is there anything I can do to make it work? The lack of notification would render the entire macro moot. 

Here is my code:

## @param Creator:title=creators|type=username|required=true|multiple=true
## @param Lead:title=leads|type=username|required=false|multiple=true
## @param Reviewers:title=reviewers|type=username|required=false|multiple=true
## @param Drivers:title=drivers|type=username|required=false|multiple=true
 
<ul>
<li><strong>Creator:</strong><br>
#foreach($user in $paramCreator.split("[,]+"))
    <form action="reviewer status">
    <input type="checkbox"><ac:link><ri:user ri:username="$user" /></ac:link><br>
    </form>
#end
<li><strong>Owners:</strong><br>
#if( $paramLead )
    #foreach($user in $paramLead.split("[,]+"))
    <form action="reviewer status">
    <input type="checkbox"><ac:link><ri:user ri:username="$user" /></ac:link><br>
    </form>
    #end
#end
<li><strong>Reviewers:</strong><br>
#if( $paramReviewers )
    #foreach($user in $paramReviewers.split("[,]+"))
    <form action="reviewer status">
    <input type="checkbox"><ac:link><ri:user ri:username="$user" /></ac:link><br>
    </form>
    #end
#end
<li><strong>Drivers:</strong><br>
#if( $paramDrivers )
    #foreach($user in $paramDrivers.split("[,]+"))
    <form action="reviewer status">
    <input type="checkbox"><ac:link><ri:user ri:username="$user" /></ac:link><br>
    </form>
    #end
#end
</li>
</ul>

Thanks for your help. I'm new to Velocity.

2 answers

1 accepted

0 vote
Davin Studer Community Champion Jun 01, 2015

Since you're not creating static user links that can be index by the indexer I don't think there is a way to get it to email.

Thanks Davin. I was afraid of that. Can you suggest any alternate way of getting this set up in macro form? I feel like I've just hit a brick wall.

Davin Studer Community Champion Jun 01, 2015

Unfortunately, I don't have any great ideas.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

356 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you