Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
reshma_km
Partner - Creator III
Partner - Creator III

Reload Tasks

Hi,

I need to enable a Qliksense developer to schedule Reload tasks in QMC. Could you please guide me how to achieve this? I tried creating a security rule, but it is not working for me.

26 Replies
JustinDallas
Specialist III
Specialist III

Can you duplicate the ContentAdmin role, and then restrict it to a stream?

reshma_km
Partner - Creator III
Partner - Creator III
Author

I tried that. I duplicated and I added the below code to advanced section in addition to the content admin code.

and (resource.resourcetype="Stream" and resource.name="StreamName").

But then, though it got filtered based on stream, some other things are not working. Like custom properties, tasks etc.

jwjackso
Specialist III
Specialist III

Because the Boolean logic of the rules is hard to understand, I created multiple rules.

Create Task:

Resource Filter: ReloadTask*,SchemaEvent*,CompositeEvent*

Actions: Create

Conditions:

user.roles="StreamAdmin" and user.@usertype="Developer"

Reload Task:

Resource Filter: ReloadTask*,SchemaEvent*,CompositeEvent*

Actions: Read, Update, Delete

Conditions:

user.roles="StreamAdmin" and

resource.app.owner.name = user.name and

user.@usertype="Developer"

App:

Resource Filter: Read

Conditions:

user.roles="StreamAdmin" and user.@usertype="Developer"  and (resource.owner.name = user.name or resource.App.HasPrivilege("read"))

The HasPrivilege lets our users schedule apps that they see in shared streams.

reshma_km
Partner - Creator III
Partner - Creator III
Author

For App:

what should be the rersource filter? App_* is enough?

jwjackso
Specialist III
Specialist III

These rules are only set for the QMC.  In my instance, to allow the user to see the applications the resource filter was App* not App_*.

The create task rule should turn on the "Create" button, but not show any tasks.

The reload task rule should let the user read, update and delete tasks that are related to apps that they own.

reshma_km
Partner - Creator III
Partner - Creator III
Author

Yes. It is working as expected. But a small problem is there. I am not able to create any trigger for scheduling tasks. Even if I create, it is not there the next time I open the task. I tried modifying the read-update-delete task to include the code below:

((user.roles="StreamAdminA" and resource.app.owner.name=user.name and user.@usertype="Developer" and (resource.resourcetype="ReloadTask" or resource.resourcetype="SchemaEvent" or resource.resourcetype="CompositeEvent")))

I modified the create task too. But it doesn't work.

jwjackso
Specialist III
Specialist III

In the reload task rule, try:

Condition: ((user.roles="StreamAdminA" and resource.app.owner.name=user.name and user.@usertype="Developer" ))

The resource filter:  ReloadTask*,SchemaEvent*,CompositeEvent* should limit the part that I removed from the conditions.

Actions should be read, update and delete.

reshma_km
Partner - Creator III
Partner - Creator III
Author

I did that. As you said, The create task rule turned on the "Create" button, but not show any tasks.

The reload task rule let the user read, update and delete tasks that are related to apps that they own.

The problem here is, the user can't create any triggers in the reload task.

jwjackso
Specialist III
Specialist III

I went back and reviewed my test user and with the rules that you  have, it was able to create tasks with once and daily triggers.

Do you get an error when you create a trigger, an error when you try to save the task or are you missing the options to create the triggers.

Also, you should be able to create a task from the task menu and app menu (more options).  Do you get errors from both of these methods?

reshma_km
Partner - Creator III
Partner - Creator III
Author

I was trying from Task menu. I am able to create a trigger, but it vanishes as soon as I hit "apply" and when I open the task again I don't see it. I tried from App menu, create new reload task is disabled/grayed out.