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

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

 

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 

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

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

Hi Alexandra, my version is 

Version: 3.0.6

Add-on key:com.keplerrominfo.jira.plugins.databasecf

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

851 views 2 9
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