database custom field : The statement did not return a result set



We have upgraded JIRA from 6.4.12 to 7.2.2 recently and found issue with database custom field which was running fine in old version. After upgrade changed the odbc jar file for ms sql as per the below instructions't+work+on+JIRA+7

I used sqljdbc42.jar file to connect to the databases as per above instructions.


Issue with only one field where I use sql query as below


DECLARE @DropList table (Provider  varchar(1000))
SET @Values = (SELECT  cfv.textvalue
from jiraschemaP.customfield cf
join jiraschemaP.customfieldvalue cfv on = cfv.customfield
join jiraschemaP.jiraissue issue on = cfv.issue
Where issue.issuetype = '10000'
and = 10807
and issue.summary = {customfield_11201})
PRINT @Values
SET @LastVal = CHARINDEX('###',REVERSE(@Values))-1

IF CHARINDEX('###',@Values) > 0
    WHILE LEN(@Values) > @LastVal
            INSERT INTO @DropList Select SUBSTRING(@Values,0,CHARINDEX('###',@Values))
            SET @Values = SUBSTRING(@Values,LEN(SUBSTRING(@Values,0,CHARINDEX('###',@Values)+2))+2,LEN(@Values)-(LEN(SUBSTRING(@Values,0,CHARINDEX('###',@Values)+2))+1))       
    INSERT INTO @DropList SELECT @Values
        INSERT INTO @DropList SELECT @Values

SELECT * FROM @DropList ORDER BY Provider ASC;


It is saying "The statement did not return a result set". Seems to me problem with @DropList values. Does any one have any idea?


1 answer

We created the stored processor and exec in databases custom field console. Its working after calling the store processor but not from console. Hope something problem with plugin or sqljdbc42.jar which is not allowing some functions that we used for DropList itseems.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,042 views 4 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