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

Hi,

 

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

 

https://confluence.kepler-rominfo.com/display/DBCF/Database+custom+fields+don'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))
DECLARE @Values VARCHAR(1000)
SET @Values = (SELECT  cfv.textvalue
from jiraschemaP.customfield cf
join jiraschemaP.customfieldvalue cfv on cf.id = cfv.customfield
join jiraschemaP.jiraissue issue on issue.id = cfv.issue
Where issue.issuetype = '10000'
and cf.id = 10807
and issue.summary = {customfield_11201})
PRINT @Values
DECLARE @LastVal VARCHAR(1000)
SET @LastVal = CHARINDEX('###',REVERSE(@Values))-1

IF CHARINDEX('###',@Values) > 0
BEGIN
    WHILE LEN(@Values) > @LastVal
        BEGIN
            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))       
    END
    INSERT INTO @DropList SELECT @Values
END
ELSE
    BEGIN
        INSERT INTO @DropList SELECT @Values
END

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
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 42m ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

39 views 3 3
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