I want to show different transitions based on the component. I used the value field compare as string. However, the transition isn't visible. Below is the condition as shown in the workflow. I verifed the spelling and case are the same in the component field and the condition. I only selected one component.
The field Component/s will have to be equal to value Requirement . Compared like String
I also tried the component id compared as a string and number and neither worked. I'm on JIRA 4.1.2.
I don't know the answer, but in the script runner plugin you could use "Simple Scripted Condition", where the condition would be:
issue.componentObjects*.name.contains("Requirement")
Which would mean one component would need to be Requirement. If you wanted to only allow the transition if that was the only component you could do:
issue.componentObjects*.name = ["Requirement"]
hi, Jamie,
"issue.componentObjects*.name = ["Requirement"]"
does this code still work in Jira Softwaree 7.2.4 ; Adaptavist ScriptRunner 5.4.7 ?
we tried in workflow condition. however, it doesn't work.
please advise, thank you.
Sonya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sonya,
Did you end up figuring this out? I'm trying to do something similar and I'm running into the same issues you had.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.