Hi!.
I'm trying to create a script with scriptrunner to be able to tansition two linked issues that, each from different projects. What I want is that when one of these issues goes to "done", the other one does it automatically.
¿Does anyone have an example of a script i can use?
¿Do i have to select a postfunction or a condition in scriptrunner?
I'm new in groovy and I'm lost!
Thanks!
Hi @Akbar N ,
You can use a Simple Script Validator:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.fields.CustomField
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager()
CustomField dosOpciones = customFieldManager.getCustomFieldObject(11111L)
def optionList = issue.getCustomFieldValue(dosOpciones).size()
optionList <= 2
I am getting error in this line
def optionList = issue.getCustomFieldValue(dosOpciones).size()
Please advice.
Thanks,
Swarna
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.