Hi,
I want to be able to automate the population of a custom field within out Jira instance. Customer names are stored within a custom field call clients as a drop down however as part of the onboarding proces we have another customer field which is just a text field called New Customer Name. If that New Customer Name field doesn't match anything in the Clients list then i would like it to be add to the selectable contexts list so it can be selected in the future.
not sure if this is possible so any advice would be great.
Hello @Adam Taylor
I think the only way you might be able to do this with an Automation Rule would be by using the Send Web Request action to call the JIRA REST API for updating field context.
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-contexts/
https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-web-request
The API requires the Field ID, so you would have to get that also as part of your automation, or find it in advance and plug in the explicit value.
I agreed with what @Trudy Claspill suggested using REST APIs to adjust the custom field's dropdown content options in conjunction with Automation rule setup.
However there is one problem I can see in your current fields designs/usage - Your "New Customer Name" is a field of text data type, thus there is no nomenclature control or formatting that you can apply to the entered value. This makes difficult when you are using it to determine if new dropdown content options should be created.
Hope this makes sense.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Infrastructure Applications Team
Viasat Inc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Are you using Assets for these lists of clients?
If so, I have a similar onboarding use case where the form includes a simple text field for the new employee Name (I use the Summary field for this).
An automation rule uses a lookup to see if it exists in the People schema (Query: Name = "{{issue.Summary}}")
If you skip to ~minute 9 of this, you can see what I mean: https://www.loom.com/share/db387636c4ba47a58de59d86a472a7f1
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.