We have 2 fields, customer name and customer id, which are from other source. If customer logs into our system and create ticket, we will not display their customer name and id, instead, populate the 2 fields by using data from the session within the post functions of Create Draft. I have searched dozen "solutions", but none of them works. Any help is really appreciated!
I don't understand the question.
You've got an nFeed field (which draws data from an external database). You have a user who logs in and creates an issue. I guess they are seeing the nfeed field but I don't understand what you are trying to do after this point.
I used Script Runner in post function. Found the following example, but I can't find where to import WebAppsCf
def customerFieldName = "customfield_11000"
CustomFieldManager customFieldManager = componentManager.getCustomFieldManager()
CustomField customField = customFieldManager.getCustomFieldObject(customerFieldName);
Options options = WebAppsCf.getOptions(null, customField.getRelevantConfig(issue), null);
Option newOption = options.getOptionById(customer);
ModifiedValue mVal = new ModifiedValue(issue.getCustomFieldValue(customField), newOption );
customField.updateValue(null, issue, mVal, new DefaultIssueChangeHolder());
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs