$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

This script can be used to check if the email participants are related to a user and then check if that user is a JSM Agent, this would then allow to determine whether to add the request participant or add the user to a JSM Agent role first.

#set($jsdApiUtils = $jemhUtils.getJsdApiUtils())
#set($project = $projectManager.getProjectByCurrentKey('TASK'))
#set($user = $jemhUtils.getUserByEmail('admin@localhost'))

#if($jsdApiUtils.isAgentForProject($project, $user))
 Yes
#else 
  No
#end

  • No labels