Hi Community,
I've been trying to copy the reporter email to a custom single line text field, I tried using the Automation app and I created this very simple rule using these options:
{
"fields": {
"customfield_16802": {{reporter.emailAddress}}
}
}
But it just copies my user name into my custom field, so I'm wondering if I'm missing something?
Hi @Juan Recabarren [ServiceRocket]
Did you figure this out? This worked for me to get the email address: {{issue.reporter.emailAddress}}
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy I set up automation according to your comment, and still prompted an error。Very much hope for your help。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try putting quotation marks around the smart value tag, such as with:
{
"fields": {
"customfield_10146": "{{issue.reporter.emailAddress}}"
}
}
There may be something in the email address that the parser doesn't like, and so the quotation marks should help.
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy Thank you very much for your help. I want to use fuzzy query to find the target mailbox (such as searching for a part of the mailbox suffix) in advanced search. Is there any way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not understand what you are trying to achieve when you note "target mailbox".
Have you investigated using the string functions like match() with RegEx expressions for the searching?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Sorry, I didn't make it clear. We want to fuzzy search the suffix of the user's registered mailbox, and we can count and view the ticket submitted by the user's mailbox. We have not studied the jira command set, please guide me how to implement it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please review this documentation to see examples of using the string parsing functions for automation rules. After you see what is available, you can try to use those to search the email address suffix.
https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/
Once you start trying those functions, please post back here for any specific questions you have. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy ,
If i want to copy a custom field to the reporter, how do I do that? I have a custom field (text) with the email address. I tried below, but it didn't work.
{
"fields": {
{{issue.reporter.emailAddress}}:"issue.customfield_10094"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @DL_PGF
First thing, rather than add on to this older post, I recommend creating a new question and linking back to this thread. Otherwise only the people following this one will see it to contribute ideas.
When you post the question, ensure you include your Jira version (i.e., Cloud, Server, or Data Center), your complete automation rule, the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer suggestions.
Back to what you asked...In an automation rule, a user field (e.g., Reporter) may only be set with another user object or with the account id value. It cannot be set using the email address.
Kind regards,
Bill
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.
Hi @Bill Sheboy
even I tried this but unable to get it in text field
I'm getting error as "Operation value must be a string"
is any other type of field is recommended?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @shetty
Please post the syntax of what you have tried to provide context. Thanks!
Best regards,
Bill
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.
Thanks Bill! I was looking for this real quick on how to use the reporter's email address in a new automation I'm creating and this popped up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Cameron Taylor I am glad that helped you!
__Bill
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.