welcome to the Atlassian Community!
So, just to be sure about your situation. You've installed Insight and created some object scheme. Then in this object scheme you've creted object type Company? Or it is just some attribute of object type? How exactly does your object scheme looks like? Do I get it right you want your customers to be able to select from some objects in Insight, when they are creating request to your Jira Service Management portal?
Thanks for the response.
We have a object schema called "AD" in that we have Object type called "users" which contains attributes.
I'm trying to have that company(attribute) to be populated in company field on request if the reporter and email(attribute) are same.
insight.user.email = reporter.email
company(insight) == company(request)
thank you, now I get it.
The possible solution is to create attribute "Jira User" with type User for your object type "Users" and using this attribute link each user object with Jira user.
Then in your Company custom field you need to restrict provided options using Filter Scope (IQL), something like:
objectType = "Company" AND object having inboundReferences("Jira User" = currentReporter())
I can't create another attribute now.
Is it there any way to use the current attributes to set the company field on issue.
I know this can be achieved by script-runner, It will very helpfull if you can give some suggestions code in script-runner.
Any help is appreciated.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
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