Problems using dinamic query based on issuetype parameter - Kepler

amandavarella October 9, 2015

I´m trying to do the following configuration

 

SELECT CLASSIFICACAO_SERVICO

FROM JIRA_SERVICOS_SUSTENTACAO_SNEP

WHERE TIPO_CONTRATO = 'GS'

and ISSUE_TYPE_ID = {issuetype}

 

If i replace the issuetype parameter with a valide issuetype id, I got the results I was expecting. But as I put it in the form of a parameter (depending on the selection of the issue by the user) I got nothing as a result. Does not return any error in the log. Any help on this?

 

6 answers

1 accepted

1 vote
Answer accepted
Alexandra Topoloaga
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.
October 13, 2015

Hi, 

My bad - I haven't realized  that you are trying to use issue type id. The  issueType variable references to the issue type name (which is, also, the one that you see in the create/edit screens), not its id.

We don't provide (at least not yet) a way to reference the issue type id.

 

Alexandra

 

0 votes
amandavarella October 13, 2015

Thank you so much Alexandra! It had worked. It´s even simpler smile

I suggest you to improve the documentation with this information. I couldn´t find, so I´ve tried in a way similar with the custom fields.

 

Thank you!

Alexandra Topoloaga
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.
October 13, 2015

Thank you for your suggestion, I'll update it ASAP. :)

0 votes
amandavarella October 13, 2015

Hi Alexandra, my version is 

Version: 3.0.6

Add-on key:com.keplerrominfo.jira.plugins.databasecf
0 votes
Alexandra Topoloaga
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.
October 11, 2015

That's weird; are you using the latest version of DBCF? 

0 votes
amandavarella October 11, 2015

No Alexandra. I'm trying to use on a create issue scree

0 votes
Alexandra Topoloaga
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.
October 11, 2015

Hi Amanda,

I'm guessing you're trying to use the script on an edit screen: it is the expected behavior - the stored value is used, so until the new value of the issue type is saved, the data base custom field won't get updated.

On the other hand, on create issue screen, should work just fine.

 

Hope this helps,
Alexandra 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events