Skip to end of banner
Go to start of banner

WIP: How to query for association in Remote System Reference

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Associations IDs for Remote System Reference are appended with comma in the TEXTVALUE field.

\uD83D\uDCD8 Instructions

Example of query can be found as follows:

select concat(jp.pkey, '-', ji.issuenum) as PKEY, cfv.textvalue, cfv.stringvalue, cf.id, cf.cfname, cf.customfieldtypekey
from project jp, jiraissue ji, customfield cf, customfieldvalue cfv
where jp.id = ji.project
and cfv.issue = ji.id
and cf.id = cfv.customfield
and (cf.customfieldtypekey = 'net.customware.plugins.connector.atlassian.jira-connector-plugin:remotesystem-id-customfield')
order by jp.pkey, ji.issuenum;

Please note that this query is built for Postgres database, please modify as needed.

Result may be as follows:

pkey|textvalue|stringvalue|id|cfname|customfieldtypekey
SRAP-25|5005j00000TmIDiAAN|NULL|10700|Classic Case Reference|net.customware.plugins.connector.atlassian.jira-connector-plugin:remotesystem-id-customfield
SRAP-26|5005j00000TnMmFAAV|NULL|10700|Classic Case Reference|net.customware.plugins.connector.atlassian.jira-connector-plugin:remotesystem-id-customfield
SRAP-27|5005j00000TnMndAAF|NULL|10700|Classic Case Reference|net.customware.plugins.connector.atlassian.jira-connector-plugin:remotesystem-id-customfield
TFBSD-2|5005j000008wRh7AAE,5005j000008wRCnAAM|NULL|10700|Classic Case Reference|net.customware.plugins.connector.atlassian.jira-connector-plugin:remotesystem-id-customfield
TFBSD-3|5005j000008wRhHAAU|NULL|10700|Classic Case Reference|net.customware.plugins.connector.atlassian.jira-connector-plugin:remotesystem-id-customfield

  • No labels