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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

72 views 1 0
Join discussion

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