ProcessTaskLink

Hello,

I am trying to incorporate a milestone report that links to different tasks in a process model:

a!milestoneField(

links: {
a!processTaskLink(
label: "Tasks in progress",
task: 536875568
),

a!processTaskLink(
label: "Tasks in progress",
task: 3808
)

My problem is that the task report ID changes every time the process is run. Is there a way to query my process report for the dynamic task ID?

Thanks,

  Discussion posts and replies are publicly visible

Parents Reply Children
  • In your a!query(), you can manage this via the selection parameter - this is where control which data points are returning:

    a!queryProcessAnalytics(
      report: cons!YOUR_REPORT,
      contextProcessModels: cons!YOUR_PROCESS_MODELS,
      query: a!query(
        paginginfo: a!pagingInfo(1,10),
        selection: a!querySelection(
          columns: {
            a!queryColumn(
              field: "c4",
              alias: "c4",
              visible: true
            )
          }
        )
      )
    )