/build/static/layout/Breadcrumb_cap_w.png

Set ticket title from two custom field

Hello,

I'm testing a rule to update the ticket title with the value of two customs field.


It work's but only with one custom field.


How should I write my SQL request ?


See the sql update request that not work :


update HD_TICKET

set HD_TICKET.TITLE = HD_TICKET.CUSTOM_FIELD_VALUE0 HD_TICKET.CUSTOM_FIELD_VALUE1

  where 

        (HD_TICKET.ID in (<TICKET_IDS>))


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: KevinG 2 years ago
Red Belt
0

You will want to look at the use of the "concat".

Returns the string that results from concatenating the arguments.


Comments:
Posted by: service.informatique@faun.fr 2 years ago
Yellow Belt
0

Top Answer

I've do with that in the update SQL request :


update HD_TICKET

  

set HD_TICKET.TITLE = concat('Nouvel entrant : ',HD_TICKET.CUSTOM_FIELD_VALUE0,' ',HD_TICKET.CUSTOM_FIELD_VALUE1)

  where 

        (HD_TICKET.ID in (<TICKET_IDS>))

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ