Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
I am working on a task report for a process-specific task report that I want to be filtered to only tasks assigned to the logged in user or a group that they are a member of (in the same way as the default tempo task list). I was planning to use the function (where the value for ri!array is tp!assignees) below as a data field that I would be able to filter on, but it seems like task reports don't accept looping functions.
or( a!forEach( items: ri!array, expression: if( runtimetypeof(fv!item)=4, fv!item = loggedinuser(), isusermemberofgroup(loggedinuser(),fv!item) ) ) )
Is there another way to accomplish user filtering within a process-specific task report?
Discussion posts and replies are publicly visible
Have you tried using a task report type configured to "Tasks attributed to user" : https://docs.appian.com/suite/help/19.1/Process_Reports.html#task-report-type
This should get both the task assigned to the user and their groups that way you don't have to write any of your own filtering.
Is there a way to pull process-specific parameters (e.g. something like carMake=, carModel=) from that report type? I know that I can mimic the process filtering by pulling the process ID, but process-specific parameters don't seem to be available.
You can by just typing into the field definition pv!<fieldname>.
Since this report pulls from all the different process models in your system, it does not populate a list of process variables but assuming you spell the variable correctly, you should be able to define it yourself. (see example where i just defined the field despite it not showing up)
Ah, that works great, thanks!