Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Can I auto Assign a Jira Issue to an agent linked to an Insight Object?

Jira Issues are linked to Insight Objects 'Organizations'

Each 'Organisation' has an Account Manager attribute (User Lookup)

If the Account Manger is populated and an issue is raised linked to the Organization, how can I automatically assign the Jira Issue to the user / agent named in the 'Account Manager' attribute?

1 answer

0 votes
Dirk Ronsmans Community Leader Mar 16, 2021

Hey @Harkins_ David ,

Do you have any automation plugins available to you? 

Something like Scriptrunner would be ideal. We use this in a similar manner to auto assign to a group or to pull Approvers from an Insight object.

Yes, Scriptrunner is available.

Looking to auto assign first, but then pulling Approvers would also be fantastic.

Would this be configured on a POST function?

Dirk Ronsmans Community Leader Mar 16, 2021

@Harkins_ David  excellent!

This is indeed something that we have configured as a Post function. In my use case we've set the post function immediately on the create transition.

Do you have any experience with pulling data from Insight thru scriptrunner? I'll see if I can get an example script from my environment. (might need to redact some things but the idea remains the same :))

Hello @Dirk Ronsmans 

I've not used Scriptrunner for this purpose yet, you could say i'm a newbie.

The issues have an Insight Object custom field which does display the Account Manager name, not sure how to pull this data out yet.

Any samples / guidance you can offer would be appreciated.

Dirk Ronsmans Community Leader Mar 16, 2021

Quick question, do you have an Insight custom field defined with the Organization and that Organization has an attribute Account Manager OR is your Account manager an Insight Object in itself on the issue?

That would change the script a bit.. 

One would mean getting an attribute of an Insight object from a custom field while the other would mean just getting the Insight object

I have an Insight Custom Field defined, which has the Organization as the label and an Attribute named Account Manager.

Is this similar to the way you handle yours at the moment ?

Like Dirk Ronsmans likes this

You can easily assign the issue to the Account Manager during a transition (including create) using the built in workflow post function.

I believe you can also do something similar with an Approvers using this workflow post function.

As Dirk mentioned, having the Organization attribute as a user data type makes it easier. I store my users as separate objects, so it's a little more complicated and requires using a bunch of Groovy scripting.

These are workflow post functions, so they'll only fire during a transition. If you want it to transition when the Organization object changes on an issue, it'll require the use of Groovy scripting in either Scriptrunner or Automations.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - April 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

290 views 3 20
Read article

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