Hi! We are trying to add part of the text from the Issue Description to a custom field.
Explanation:
*When you set Jira mail handler to create issue via email, there is an option to set a " Default Reporter". But this option does not allow to add the "legitimate" reporter as a watcher, or unless send him notifications of the issue updates.
Jira add in Description somethin like: "[Created via e-mail received from: username <username@email.com>]".
So we want to create a script to add part of that text (just the email between < >) on a custom field. Then we will notify the user via post-function with email this issue addon as "recipients stored in fields!.
Thnaks in advance!
Marcos.
Not possible out of the box.
Why don't you us the ability for JIRA to determine the user from the email? It should be an option instead of setting a default reporter.
Thanks for the reply Steven.
Because if the user does not exist on Jira, will create the account. We don't want that.
We just need anonymous users to have the hability to create issues via email and get the notification when the issue is completed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have any plugins to support this? Like ScriptRunner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to do the same thing with script runner. @MarcosQ Were you able to achieve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To be honest, this is trivial. Write a regex to capture the email between the less than and greater than symbols, and then add that to a custom field and update the issue. This would be a Script Listener likely.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually made this work in a similar way using an automation rule.
Event: Issue Created
Edit Custom Field: Email Address
{{issue.description. substringBetween(" <",">]")}}
Now I want to send an Issue Created email to this email address, but this automation rule applies after the issue created event...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Automation plugin also has publish event option which allowed me to send notifications. Script listener captured the event and sent notifications
Thanks All
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.