Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
534 views
in Technique[技术] by (71.8m points)

jira - com.ceilfors.jenkins.plugins.jiratrigger.JiraTriggerException: Class: ParameterErrorCode, Name: FAILED_TO_RESOLVE

while mapping the customFieldID 13614 (a custom XRay Field that describe an issue key related to the main issue) I get this error:

com.ceilfors.jenkins.plugins.jiratrigger.JiraTriggerException: Class: ParameterErrorCode, Name: FAILED_TO_RESOLVE, Code: 1, Attributes: [customFieldValue:<org.codehaus.jettison.json.JSONObject@127327f myHashMap=[b:STV-35, c:621]>]
    at sun.reflect.GeneratedConstructorAccessor197.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
    at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)

It looks like the plugin can actually find the customField in my issue but can't resolve the mapping (in the stacktrace the value STV-35 is the linked issue that I need to map).

I'm trying to map that value into a String Jenkins parameter.

UPDATE

I managed to retrieve JSON structure: the following structure return in an error

"customfield_13614": [
    {
        "b": "STV-178",
        "c": 623
    }
],

while this piece of JSON works fine:

    "customfield_13625": [
        "STV-277"
    ],

Is there a way to make the plugin works fine with the customfield_13614?

question from:https://stackoverflow.com/questions/65842864/com-ceilfors-jenkins-plugins-jiratrigger-jiratriggerexception-class-parametere

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...