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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

71 views 0 5
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