Copying the Value from one field to a custom field using automation

Read various questions/post/comments/blogs about this but still cant get this to work even though i think its depressingly simple.

Background is we need to know which client our tickets are coming from using JIRA Service Desk. This is surprisingly tricky given we cant give them a drop down box of client names when submitting tickets (Client Confidentiality) and annoyingly we cant use unique email domains to determine this as some clients share domains (public sector). The only way we have found of doing this is to use SSO API to save the client name to the 'Organizations' value of the user. Unfortunately since that cant be edited i then need to copy it to a custom field which we can then manipulate if necessary (may need to be changed occasionally but dont want to have to  set it for every new ticket)

So the main question is how to copy the value from the 'Organizations' field to a custom field 'Customer' when a ticket is created? They both have pre determined values but these will be the same.

Failing that any other alternatives of how to get this data into a custom field.

Thanks in advance for any help!

1 answer

0 votes
Nick Menere Community Champion Dec 21, 2017

Hey Jon,

Sorry this hasn't been as straight forward as it should be.

The fact that Organizations is a multi-value field may cause issues but if we assume there is only one value you use the following smart value to set the Customer field:

{{issue.Organizations.first.name}}

You rule should be set up like:

Screen Shot 2017-12-22 at 11.39.07 am.png

 

Please let us know if that isn't working for you.

 

Cheers,

Nick

Hi Nick

Works a treat. Even though both fields have multiple values (list of various clients) i have tested it and it works.

Just so i understand the syntax what is 'first.name' referring to in the above. Not massively important as its working but i always like to understand why!

Thanks for your help on this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Marketplace Apps

You + one app + a desert island...

Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...

2,284 views 5 6
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you