You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We use one Workflow for different tiers of support, with a status to separate from the Triage team to the Level 2 team. What we want to do is make it so level 2 agents cannot assign tickets while it's sitting in Triage and Triage agents cannot assign tickets if it's not in the Triage Status.
With the Behaviors plugin I can make the assignee field read only to the required team, but this will only work on the Button and not the field on the view issue screen, if i remove Assignee from the Edit screen the option "Assign to Me" is still functional. I can remove this by editing the Status properties to limit to a group. However i would not like to go this route as i feel it's too granular and difficult to manage in the long run.
Is there a way i can combine the two and control the Status Properties via Scriptrunner and the Behaviors plugin?
Hi @Ryan L
You have to play with the status properties to do this change, and limit it to a group/user/role in the certain statuses.
Hope it helps.
Here you go:
StatusManager statusManager = ComponentAccessor.getComponent(StatusManager)
WorkflowManager workflowManager = ComponentAccessor.getWorkflowManager()
String statusId = "10201" //Change with the status you want to add the property
String workflowName = "XXXX" //Change with your workflow name
Map currentAttributes = workflowManager.getWorkflow(workflowName).getLinkedStep(statusManager.getStatus(statusId)).getMetaAttributes()