Deds,
workflow::case::role::get_assignees
workflow::case::role::set_assignee_values
Both procs use case_id as parameter and i don't have it from advance. I have only workflow_id, role_id and bug_id
How would i get the user_id of the resolver in the display mode?
I want to get the user_id, to pass it as parameter of an API, to use it in another field of the ad_form.
something like:
workflow::role::add_assignee_widgets -workflow_id $workflow_id -form_name bug -roles resolver
which is the API that returns the the ad_form element of the resolver on display mode.
Then i want to use the resolver info, only user_id.
ad_form -extend -name bug -form {
{item:text(select),optional
{label "Equipment"}
{options {[bug_tracker::get_items -user_id $role_resolver(user_id) -bug_id $bug(bug_id) -workflow_id $workflow_id]}}
{mode display}
}
I created the API bug_tracker::get_items
Attention to parameter $role_resolver(user_id)
This is a guess! Precisely what I am trying to figure out.
How to access the data structure (ad_form element) that holds the resolver info, in order to use it?