Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

It informs reporter=user is not account always when I use sub-task creation by script.

Helen Song December 9, 2020

It informs reporter=user is not account always when I use sub-task creation by script.

in workflow's post-function.

JIRA version: 7.3.3

scriptrunner version: 2.24.3

 

3 answers

1 accepted

0 votes
Answer accepted
Helen Song December 10, 2020

Solved it.

.setReporterId(user.key)  --- here, we cannot use key or id, it can work by using username.

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2020

 

You haven't told us how you are configuring or writing the script, so we can't tell you exactly what is wrong, but my guess is that you don't have a user with a login of "reporter" and you have probably incorrectly assumed that parameters can accept variables

0 votes
Helen Song December 9, 2020

The error is "The reporter specified is not a user"

Suggest an answer

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

Atlassian Community Events