Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Scriptrunner login to control workflow

Hi,

I have a use case where I need to allow transition to the next status to be done by members of a group - but also have groups control who can transition. 

So for instance,

If component = A

and

logged in user is member of group ABC

Then allow transition

Similarly, 

If component = B

and

logged in user is member of group XYZ

Then allow transition

1 answer

0 votes
Sachin Dhamale
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 11, 2022

@Saira ,

 

You need to write scripted condition where you can check the group of logged in user and the component.

If (component ==  A && User Group == ABC) return true 

elseIf(component ==  B && User Group == XYZ)  return true

else return false.

 

This API helps you to get user groups -

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-get

yes, I need a more explicit example, I already know the steps, need scriptrunner code examples. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events