2013-04-22 1 views
0

내가 합류점에서 사용하고 싶다고 쓴 jira 가젯이 있습니다. Jira와 Confluence를 로컬로 실행하고 있습니다. 내 jira 인스턴스에 설치된 가제트가 있고 두 인스턴스 모두 응용 프로그램 링크로 완전 신뢰로 연결되어 있습니다. Admin의 External Gadgets 섹션에 합류하여 내 가젯을 설치했습니다. 그런 다음 간단한 페이지를 만들고 선택 매크로를 통해 제 장치를 추가했습니다. 가젯을 클릭하면 설정 화면이 표시되는 데 문제가 있습니다. 내가 gadget.common.project.label이라는 레이블을보고 있기 때문에 i18n 리소스가 누락 된 것처럼 보입니다. 또한 iframe은 내 configs를 모두 포함하도록 확장되지 않습니다. 내 "projectPicker"에서Confluence에서 Jira Gadget 설정 문제

<?xml version="1.0" encoding="UTF-8" ?> 
<Module> 
<ModulePrefs title="__MSG_gadget.title__" 
      directory_title="__MSG_gadget.title__" 
      description="__MSG_gadget.description__" 
      author="__MSG_gadget.author__" 
      thumbnail='#staticResourceUrl("TechnicalDebtTracker:TechnicalDebtTracker-resources", "thumbnail.png")'> 
    <Optional feature="gadget-directory"> 
     <Param name="categories"> 
      . JIRA 
     </Param> 
    </Optional> 
    <Optional feature="atlassian.util"/> 
    <Optional feature="auth-refresh"/> 
    <Require feature="setprefs" /> 
    <Require feature="dynamic-height"/> 
    <Require feature="settitle"/> 
    <Require feature="views"/> 
    <Require feature="oauthpopup"/> 
    #oauth 
    #supportedLocales("gadget.common,gadget.user.activity") 
    <Locale messages="__ATLASSIAN_BASE_URL__/download/resources/TechnicalDebtTracker/i18n/ALL_ALL.xml"/> 
</ModulePrefs> 
<UserPref name="isConfigured" datatype="hidden" default_value="false" /> 
<UserPref name="project" datatype="hidden" required="true" /> 
<UserPref name="methodology_type" datatype="hidden" required="true" default_value="scrum" /> 
<UserPref name="warning_threshold" datatype="hidden" required="true" default_value="10" /> 
<UserPref name="critical_threshold" datatype="hidden" required="true" default_value="20" /> 
<UserPref name="paid_down_period" datatype="hidden" required="true" default_value="90" /> 
<UserPref name="normal_color" datatype="hidden" required="true" default_value="#61F553" /> 
<UserPref name="warning_color" datatype="hidden" required="true" default_value="#FFFA66" /> 
<UserPref name="critical_color" datatype="hidden" required="true" default_value="#FF7A66" /> 
<UserPref name="refresh" datatype="hidden" default_value="false" /> 
<Content type="html"> 
    <![CDATA[ 
     #requireResource("com.atlassian.gadgets.publisher:ajs-gadgets") 
     #requireResource("com.atlassian.jira.gadgets:g-filter-results") 
     #requireResource("TechnicalDebtTracker:TechnicalDebtTracker-resources") 
     #includeResources() 

(function() 
     {  
     var gadget = AJS.Gadget({ 
      baseUrl: "__ATLASSIAN_BASE_URL__", 
      useOauth: "/rest/gadget/1.0/currentUser", 
      config: { 
       descriptor: function(args) { 
        var gadget = this; 

        var projectPicker = AJS.gadget.fields.projectPicker(gadget, "project", args.projectOptions); 
        return { 
         fields: [ 
          projectPicker, 
          { 
           id: "methodology_type-id", 
           userpref: "methodology_type", 
           label: "__MSG_gadget.config.SetMethodology__", 
           description: "", 
           type: "select", 
           selected: gadget.getPref("methodology_type"), 
           options: [ 
              { 
               label:"Scrum", 
               value:"scrum" 
              }, 
              { 
               label:"Kanban", 
               value:"kanban" 
              } 
             ] 
          }, 
          { 
           id: "warning_threshold-id", 
           userpref: "warning_threshold", 
           label: "__MSG_gadget.config.SetWarning__", 
           description: "__MSG_gadget.config.InStoryPoints__", 
           type: "text", 
           value: gadget.getPref("warning_threshold") 
          }, 
          { 
           id: "critical_threshold-id", 
           userpref: "critical_threshold", 
           label: "__MSG_gadget.config.SetCritical__", 
           description: "__MSG_gadget.config.InStoryPoints__", 
           type: "text", 
           value: gadget.getPref("critical_threshold") 
          }, 
          { 
           id: "paid_down_period-id", 
           userpref: "paid_down_period", 
           label: "__MSG_gadget.config.SetPaidDownPeriod__", 
           description: "__MSG_gadget.config.InDays__", 
           type: "text", 
           value: gadget.getPref("paid_down_period") 
          }, 
          { 
           id: "normal_color-id", 
           userpref: "normal_color", 
           label: "__MSG_gadget.config.SetNormalColor__", 
           description: "__MSG_gadget.config.HexCode__", 
           type: "text", 
           value: gadget.getPref("normal_color") 
          }, 
          { 
           id: "warning_color-id", 
           userpref: "warning_color", 
           label: "__MSG_gadget.config.SetWarningColor__", 
           description: "__MSG_gadget.config.HexCode__", 
           type: "text", 
           value: gadget.getPref("warning_color") 
          }, 
          { 
           id: "critical_color-id", 
           userpref: "critical_color", 
           label: "__MSG_gadget.config.SetCriticalColor__", 
           description: "__MSG_gadget.config.HexCode__", 
           type: "text", 
           value: gadget.getPref("critical_color") 
          }, 
          AJS.gadget.fields.nowConfigured() 
         ] 
        }; 
       }, 
       args: function() 
       { 
        return [ 
         { 
          key: "projectOptions", 
          ajaxOptions: "/rest/gadget/1.0/filtersAndProjects?showFilters=false" 
         }, 
        ]; 
       }() 
      }, 
+0

내가, 당신이 실수로 남아있는 것 같아 어떤 가젯이 합류처럼 보이는 볼 수 없습니다 링크. – MNRSullivan

+0

http://i.stack.imgur.com/pZw8w.png –

답변

2

봐 : 여기

내 가제트 합류 여기 enter image description here

처럼 내 가젯 gadget.xml의 머리 부분이다 모습입니다. 나는 그것이 도움이 될 것 같아요 :이

AJS.$.extend(true, {}, AJS.gadget.fields.projectPicker(gadget, "project", args.projectOptions), 
    {description: "select a project", 
    label: "Project"} 
) 

는이 같은 메시지를 추가 할 수 있습니다

AJS.$.extend(true, {}, AJS.gadget.fields.projectPicker(gadget, "project", args.projectOptions), 
    {description: "__MSG_gadget.common.project.label__", 
    label: "__MSG_gadget.common.project.description__"} 
) 
관련 문제