The easiest way to accomplish this would be to use Automation in Jira.
Specifically, you'll want a rule that:
Here's a link to get started with Automation (in case you haven't used it before):
Be aware that there are limits on Automation usage with the Jira Free plan:
In particular, note the 100 "rule executions" per month limit for the Free plan.
_ _ _ _ _ _ _ _ _ _ _ _ _ _
An alternative solution is to set a Post Function on the Create step in the Workflow:
This approach is a bit more hidden, but there is no "execution limitation".
Hi Mykenna,
Thanks for the quick response. we don't have a field called Domain, I want to copy the domain from the reporter field to a custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see. Then the "Workflow - Post Function" approach will not work for that.
Automation can do this, though. You'll do what I mentioned above, but the "Edit Issue" action is just a pinch more complicated.
I created the rule below to test it. This rule copies the assignee email address domain (everything after the @ in the email) to the Description field. You'll want set it to your custom field instead.
I have the action component selected in the rule so you can see the Smart Value notation used to extract the email address and parse out the domain.
Important notes:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response Mykenna.
I have tried the automation but I'm getting the error. Please check the attachment for the errors and automation.
And I'm trying to pull the domain from the reporter field, not from the assigned field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the SmartValue syntax (the code between the {{ and the }} markers) should not be in the "Additional Fields" section (under "More options"). Only JSON belongs there, and that is the source of the error.
Instead, put the SmartValue code into the "Company2" field. We don't want to clear that field, we want to set it to the value returned by the SmartValue code.
It should look like the following. I used a field we had called "Chamber", you want "Company2" there, of course.
Important notes:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mykenna,
Is it possible to get Company from Insight if the reporter's email on Jira project matches to email in Insight.
I mean,
If issue.reporter.email is equal to email in Insight attribute, then get the company in insight and populate in JIRA project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Honestly, I'm not sure. I do not have access to Insight for any of my Jira Instances at this time, so I can't give you a tested solution.
Consider closing out this question (which was focused on copying the reporter's email domain to a custom field), and creating a new question that focuses on using Jira (or JSM?) to retrieve Company data from Insight.
Tagging that new question with Jira (or JSM) and Insight is recommended.
Best wishes!
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.