Pregunta

I am using JIRA Builtin Script Listener - Create a sub-task. to create subtasks for Dev and QA for every story and bug in JIRA.

I would like the subtasks to be always assigned to user "Virtual QA". It seems that I have to do this through Additional issue actions field. I am trying to use:

issue.summary = ('QA: ' + issue.summary)
issue.assignee = 'Virtual QA'

This works only if I use only the first line to set the subtask summary but when I add the second line the script does not run. Can you please help me to solve it?

I was not able to help myself using the official documentation on: https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts

¿Fue útil?

Solución 2

After a lot of investigation and a hundred text tickets this works :)

import com.atlassian.jira.component.ComponentAccessor
issue.summary = ('QA: ' + issue.summary)
issue.setAssignee(ComponentAccessor.getUserUtil().getUser('qa'))

Otros consejos

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top