Hi,
If I have a Jira issue (task) "Issue1" with a Description "testdescription Assignee: Jane Smith", how do I populate the Assignee field in the Jira task from my description?
I tried doing
{{issue.description.substringAfter("Assignee: ")}}
and it didn't work - what might be going on here?
Hi Jane Smith,
Welcome to Atlassian Community!
The assignee field is expecting the Atlassian Id of the user that should be the assignee, so using {{issue.description.substringAfter("Assignee: ")}} would only get the name of the user. You would then have to search your users via the Find user endpoint in order to get the Atlassian Id and then set the assignee.
right, that helps with identifying the problem, thanks!
would something like the below work in the rule JSON though? I'm trying to avoid writing a lengthy python function just to retrieve the user ID
{{assignee.displayName}} = {{issue.description.substringAfter("Assignee: ")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jane Smith
Are you using the cloud version or data center version ?
In your example, Assignee seems to be the display name of the user, I think it may work only if you have the username here.
Regards
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.