Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can i copy Company field in insight to the custom field on jira request

How can i copy Company field in insight to the custom field on jira request

1 answer

0 votes
Hana Kučerová Community Leader Dec 14, 2020

Hi @sunilkumar Shangishetty ,

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?

Hi Hana,

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.

something like

insight.user.email = reporter.email
{

company(insight) == company(request)

}

Hana Kučerová Community Leader Dec 15, 2020

Hi @sunilkumar Shangishetty ,

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())

Hi Hana,

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.

Hana Kučerová Community Leader Dec 20, 2020

Hi @sunilkumar Shangishetty ,

did you found this script in the official documentation?

It is a post function, so the company object will be stored to some custom field after issue creation. But maybe it could also work for you?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

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 ...

7,047 views 8 28
Join discussion

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you