cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign a new task to a user by getting user details(id) from a REST Call.

sudheerm
Champ in-the-making
Champ in-the-making
Hi ,

I am trying to get the ID value of a user from a REST Call and then assign the next task(newly created task) to that user.

sample rest output :

"data": [
        {
            "id": 123,
            "firstName": "Sudheer",
            "lastName": "Reddy",
            "email": "sudheer.marreddy@gmail.com",
            "externalId": "ADFCDE"
        }
    ]
}

now I want to mention 'id' value in the 'assignee' property of the newly created task .. will you please help me to achieve this(on how to capture id and mention it in the next task assignee field ) ?
thanks in advance.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Not sure why you're using REST for this … in your model, you need to set the assignee with an expression that does the same logic (but probably in Java) like assignee="${myCustomBean.getAssigneeFromPreviousTask()}"