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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Monday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

343 views 0 13
Read article

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