I have a customer field (full user name) that I'd like to use to update the jira issue reporter.
I need something like getKeyForUsername()
I'd like to do something like
{
"fields": {
"reporter":{"displayName": "{{issue.requesterFullName}}"}
}
}
or
{
"fields": {
"reporter":{"id": "getKeyForUsername({{issue.requesterFullName}}).accountID"}
}
}
Hi Robert,
Automation for JIRA Support team member here.
It seems that you're trying to retrieve the accountId for a user. Is that correct?
If it is correct. Can you please tell me if this is a JIRA Cloud or JIRA Server instance?
In the meantime, have you took a look at this documentation? https://docs.automationforjira.com/knowledge-base/convert-usernames-to-user-account-id.html#converting-user-smart-values
Also, can you please share a screenshot of your rule, so I can have a better idea of how you are configuring this.
Looking forward to hear from you.
Cheers,
Victor
Hi @Robert Bischof ,
I've discussed this with our development team and we don't support what you're trying to achieve. But we've got an feature request open for this: https://codebarrel.atlassian.net/browse/AUT-725
It might be some time until we got to work on this due to some higher priorities on our backlog.
Hope it helps!
Cheers,
Victor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try {{issue.requesterFullName.name}}?
Maybe this doc will be helpfull - https://docs.automationforjira.com/reference/users.html
Please let me know if it works :)
Regards,
Seba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, but that didn't work.
{{issue.requesterFullName}} is just a string (ie. "First Last"), so it doesn't have a '.name'.
I need a way to look up the JIRA user using the full name, the way getKeyForUsername(String username) does.
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.