The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SQL to add column to a table in schema??

Mary Heather Cox
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 14, 2023

What kind of SQL is expected? That's a very interesting parse of very simple SQL query.

 

 

addcolumnschema.jpg

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jessie Turpin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 15, 2023

Hi Mary! When creating a custom column in your data source's schema you won't need to include typical SQL statements like SELECT, FROM, etc because the custom column can only be created from a column that already exists in that specific table. You can read more about the settings of a custom column and see an example in our documentation. If you'd like to create a column referencing more than one table, you will need to create a custom table instead. 

To create a custom column in the Issue field table with your custom field 'Product', try using the following Case statement: CASE WHEN Name = 'Product' THEN Value END

Let us know if you have any other issues adding your custom column!

TAGS
AUG Leaders

Atlassian Community Events