Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,428
Community Members
 
Community Events
168
Community Groups

Populate Insight custom field from the Reporter value when creating an issue

Desired Outcome:

I have an Insight Object Type called "People" and I have created objects with names matching Jira user name.

I've created an Insight custom field called "Client" with the JQL to look in the People object type.

I want to dynamically assign the name value of the Client custom field with the value of the Reporter field when an issue is created.

What I've tried without success:

I've tried various other plugins such as Jira Automation but it doesnt let me use smart values for Jira insight custom fields. I did try their advanced option with this...

{

    "fields": {

        "Client": [

{"Name": "{{issue.reporter.displayName}}"}

]

    }

}

without success.

- I tried another plugin called JSU which has a "Copy Value From Other Field" and set it to copy Reporter field to Client but it throws an error, even when I move the post function order around.

- I tried various Post functions.

Feels like it should be doable and I'm missing something easy. Any help is greatly appreciated. Cheers

1 answer

1 accepted

0 votes
Answer accepted

Hi Danny.

       Try the following in the Insight Customfield configuration -

Filter Issue Scope (IQL): objectType=People

Filter Assign Scope (IQL): Name = ${reporter.name}

This will populate the Insight CF "Client" with a "People" objects where the Name is the Reporter's Full Name (displayed name)

Kind regards,

Yinon

Mindville Support Team

Melo Community Leader Jun 02, 2021

Hi Yinon,

Does it work when the reporter is creating the issue through a JSM portal?

Cheers,

Melo

Hi Yinon,

How can we do this in the cloud?  I tried but it didn't work.

Field Scope.png

 

Kind regards,

Hi Melik, drop the ".name". IQL should look like this Name = ${reporter}

Like # people like this

Hello, would it be possible to use a custom field instead of the ${reporter}? let's say I have a custom field created: "testfield" and I want to use that Name = ${testfield}. I've tried but it's not working. 

@Carlos Sura ${customfield_xyz} is the syntax you need (replace xyz with the custom field number).

Thank you so much @Adam Gołaszewski !

I tried all different kind of suggestions I could find, but nothing worked. 
However, removing the .name did the trick!

Like Adam Gołaszewski likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events