Can I automatically populate a field based on the value in another field?

Marcus Ladd January 23, 2025

We are using Jira Cloud to manage our software tickets. When creating bug tickets for our developers, it is helpful to include both the customer name and unique ID of the customer's site. However, while I may know the name of the customer simply by looking at the site, I won't necessarily know the unique ID without referencing our internal documentation.

I would like to create two custom fields that are associated with one another, such that if I select the customer name from a pre-populated list when creating the ticket, the unique ID field will be automatically populated based a second pre-populated list.

 

For example, I have a table:

 

Customer | Site ID

John's Coffee Shop | abc123

Bill's Auto Shop | def456

Tom's Flowers | ghi789

 

I would like to create custom fields called "Customer" and "Site ID". When I select "John's Coffee Shop" from the available list of values for "Customer", I want to see "Site ID" populated with "abc123".

 

2 answers

2 accepted

4 votes
Answer accepted
Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2025

Hi @Marcus Ladd and welcome to the Atlassian Community!

You can automate using the Create Lookup Table automation action.

 

example for your case;

 

Screenshot 2025-01-23 at 11.20.24 PM.pngScreenshot 2025-01-23 at 11.20.31 PM.png

If the answer helps, please accept the answer.

 

Best regards,

Murat Seven

Marcus Ladd January 23, 2025

This is perfect, thank you!

Like Murat Seven likes this
Murat Seven
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2025

You're very welcome! I'm glad I could help @Marcus Ladd :) 

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 23, 2025

Hello @Marcus Ladd 

Welcome to the Atlassian community.

How many customers do you have, that you would need to map to sites?

Is the place where that is currently documented something that could be referenced through a REST API call that you could use to get the Site associated to a specific Customer?

If so then you could use the Send Web Request action in an Automation Rule to execute that call to get the Site, and then rule could update the issue.

Do you use just the Jira product or do you also use the Jira Service Management project?

If you use the JSM product also, then you might want to consider documenting the Customers and Sites as Assets, which you could then reference through Automation Rules to look up a customer and get their associated site?

These solution and @Murat Seven 's suggestion would be updating the Site field only after the issue is created.

If you want to update the Site field dynamically while the user is still in the Create Issue dialog, that would require a third party app.

Marcus Ladd January 23, 2025

Thank you Trudy! We are using just the Jira product and the number of customers is large enough that it would be difficult for me to keep track on my own. I am going to try Murat's suggestion since I don't need the field updated while still in the Create Issue dialog.

Like Trudy Claspill likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 23, 2025

Hello @Marcus Ladd 

Be advised that a Lookup Table is limited to 200 pairs. If you have more than 200 customers, you will have to create multiple Lookup Tables in your rule and execute multiple actions to check each one to see which one the customer is in.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events