WorkFlow Type secondary field and dynamic content
HI i have added another workItem field in time tracking setup. how can i control the content of the to be filtered per task.
Lets say that i have a specific lists of tasks in project and i want to allow specific workItems from to be selected. Is there any direct setup for this?
Or the list of the workItem type is generic for all and i have to make a workflow that checks and does not allow? If this is it could we have an example?
I was thinking to have the same field in the project fields and then to make it private and multiselect from the generic list what i want. After this a workflow on creation of workItem to check from the task if the workItem selected is in the already set list for the Task.
Example:
Generic Field name : Task Roles
Data: Project Manager, Legal Council, Legal Assistant.....
In Task1 only project manager should be applicable and in task 2 all legal users.
On workItem all 3 will be available and if someone tries to select Project manager for task 2 it should not allow the record.
Reason for this is cause we might have people that in project they might cover more than one positions and we need them also to choose the acting role.
Could it be done also differently?
Please sign in to leave a comment.
Hi, I'm afraid there is no direct setup here if you'd like to restrict work items being logged depending on their type and a value in a custom field. We also don't have a readily available workflow here, but the other approach with the workflow that you mentioned should work. You can use the same logic that I referred to in the other discussion, with the workflow.check function that will block the transaction in case its condition is not true. issue.workItems.added.isNotEmpty() can be used in the guard function or the if statement to check if any work items have been added.