Forums

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

Are adding view and user to Jira postrgresql db safe?

Lukasz Sabiniok
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2018

Hello

 

In order to integrate jira with other system we want to create view in jira postgresql DB:

Something like:

CREATE VIEW view_name AS
SELECT concat_ws('-', p.pkey::text, i.issuenum::text) AS JIRA_ID, i.summary as description
FROM project p, jiraissue i
WHERE p.id = i.project AND i.issuetype = (SELECT id FROM issuetype WHERE pname = 'something');

Also create DB user with SELECT permissions on this view.

Are actions like this safe or may it cause some failures of Jira and problems with updates?

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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 Leaders.
February 6, 2018

A view like this will not cause problems, as long as you only ever use it for read, and it doesn't put any significant load on the database.  Upgrades may complain about it or even remove it, but you can put it back afterwards.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events