I'm trying to get the domain name of the reporter to be set as a label in my issues as they are created. Right now, I have a regular expression working in all of the regex testers online, but when I try it in JIRA it does not work. It returns a blank string or nothing at all.
What I'm looking for is if the reporter's email address is email@example.com, I would like the label to be mydomain
My automation JSON code for updating the label is below:
I have tried with asJsonString and without asJsonString.
I have tried with escape slashes and without slashes
Any help would be appreciated. If not I will use the fall back of
which returns the full domain name.
Thank you again in advance.
Thank you for reaching out to Atlassian Community!
We were able to test here and confirm that the smart value that gets only the reporter’s domain is the one below:
Please, take your time to test and let us know how it goes.
Thank you for this. The only thing I wonder is if an email address is in the form firstname.lastname@example.org if it will work or not. I think it still will work for this, but not 100% sure.
The final code i put in was this:
HI @mobiusinteractive !
In addition to @Angélica Luz 's Answer, there also another option.
You could use Organizations field, and set it based in the customer's domain:
This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events