Problems using dinamic query based on issuetype parameter - Kepler

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

This widget could not be displayed.

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

 

This widget could not be displayed.

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 

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

Hi Alexandra, my version is 

Version: 3.0.6

Add-on key:com.keplerrominfo.jira.plugins.databasecf
This widget could not be displayed.

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!

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

481 views 3 17
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you