Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Set the "project lead" as an assignee

 
2
1
0

Hi,


I'm looking for for a solution to get the "Project Lead" of the project in exalate.


issue.assignee = nodeHelper.getUserByUsername("User1") would return a specific user to the assignee field.

However, I would like to have the main "Project Lead" or the default assignee to be the assignee while an issue is created in Jira with exalate.

May be something like: issue.assignee = nodeHelper.getProjectLead("...").


BR,

Sujan

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      The project field has the lead as attribute

      https://docs.idalko.com/exalate/display/ED/Project


      What you can do is


      issue.assignee = issue.project.lead



      But watch out.  During first sync, issue.project is unknown (because at that stage the project is not set)

      To guard against this - you  should  use the  nodeHelper to lookup the project, and then  extract the lead

      issue.assignee = nodeHelper.getProject(issue.projectKey)?.lead
      
      


      Let me know if this helps


      Francis

        CommentAdd your comment...