I have a workitem (id: "fonction") with a custom field (id: "idQC").
In a classic wiki page, I would like to find the value of the custom field idQC and write it in a variable, to be able to reuse it later.
How can I achieve this?
Here is a first step I've made:
Code: Select all
#set ($project_id = $page.getSpace().getProjectId())
#set($items = $trackerService.queryWorkItems("type:fonction AND project.id:$project_id", "id"))
#foreach($item in $items)
#set ($itemID = $item.getId())
#set $itemidQC = ???????????????????????????????????
##end
Maybe it is not the right direction. I can get the ID of the item, but I don't know how to get the value of its custom field.
Thanks for your help and answers.
Best,