I do not know if and how I could do this and if I should use Jira Automation or Conditions/Validators/Post Functions via the Workflow.
To be specific these are the requests:
Hi @Fleur Post
You can achieve that if you have Script Runner or Enhancer Plugin. If you have Enhancer Plugin, you can easily define user custom fields which can be user who did which transition but if you don't you can store those users adding post functions in your transitions. Let me explain step by step.
import com.atlassian.jira.component.ComponentAccessor
def currentUser = ComponentAccessor.jiraAuthenticationContext.getLoggedInUser()
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def userField1 = customFieldManager.getCustomFieldObjectByName("Ready for Test User")
def userField2 = customFieldManager.getCustomFieldObjectByName("User Testing User")
def user1 = issue.getCustomFieldValue(userField1)
def user2 = issue.getCustomFieldValue(userField2)
return !currentUser.isEqual(user1) && !currentUser.isEqual(user2)
I hope it helps, let me know if you need further assistance
Thank you so much @Tuncay Senturk !
We do have Scriptrunner.
I will try this out and let you know how it went 🤩
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.