Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA onDemand - add web-item to Export dropdowns in issue view

Fábio Antunes November 12, 2015

Hi all,

I'm currently trying JIRA onDemand for development purposes and I'm not able to add a web-item into the "Export" dropdown buttons in issue view.

xLGp76A.png



8y3pvew.png 

This is my atlassian-connect.json (I tried several locations but none works):

{
  "name": "XXX",
  "description": "XXX Add-on",
  "key": "com.company.jiraXXX",
  "baseUrl": "<PRIVATE URL>",
  "vendor": {
    "name": "company",
    "url": "http://www.company.com"
  },
  "authentication": {
    "type": "none"
  },
  "apiVersion": 1,
  "modules": {
    "webItems": [
      {
        "url": "/test",
        "location": "jira.issue.tools/view.issue.exports",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu",
        "name": {
          "value": "XXX"
        }
      },
      {
        "url": "/test",
        "location": "jira.issue.tools/viewissue-export",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu1",
        "name": {
          "value": "XXX"
        }
      },
      {
        "url": "/test",
        "location": "view.issue.exports",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu2",
        "name": {
          "value": "XXX"
        }
      },
      {
        "url": "/test",
        "location": "view.issue.exports/viewissue-export_drop",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu3",
        "name": {
          "value": "XXX"
        }
      },
      {
        "url": "/test",
        "location": "jira.issue.tools/opsbar-jira.issue.tools",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu4",
        "name": {
          "value": "XXX"
        }
      },
      {
        "url": "/test",
        "location": "view.issue.exports/opsbar-jira.issue.tools",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu5",
        "name": {
          "value": "XXX"
        }
      },
      {
        "url": "/test",
        "location": "opsbar-jira.issue.tools",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu6",
        "name": {
          "value": "XXX"
        }
      },
      {
        "url": "/test",
        "location": "jira.issue.tools",
        "context": "addon",
        "weight": 200,
        "target": {
          "type": "page",
          "options": {
          }
        },
        "key": "XXX-header-views-menu7",
        "name": {
          "value": "XXX CHECK"
        }
      }
    ]
  }
}


Any help will be appreciated,
Best Regards

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Einar Pehrson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2015

The entries in the Export drop-down at the top of the page - which export all issues in the list being viewed - are Search Request View modules in both Atlassian Connect and in P2.

The Atlassian Connect descriptor fragment you need is the following.

{
  "modules": {
    "jiraSearchRequestViews": [
      {
        "key": "my-search-view",
        "url": "/test",
        "name": {
          "value": "My Search View"
        }
      }
    ]
  }
}

The entries in the Export drop-down on the view issue panel are Single Issue View modules in P2, but that module type is not documented publicly.

Also, this module type is not available yet in Atlassian Connect. I have raised ACJIRA-651 to track this new feature. Please vote for that issue.

Fábio Antunes November 12, 2015

Hi Einar Pehrson, Thank you very much for the tip, with that fragment I am able to add my item in the dropdown button that is in the top of the page, but im wondering if there a way to also add an item in the other "Export" dropdown button that have the values {XML, Word, Printable} ? It is possible ? Kind Regards

Einar Pehrson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2015

Hi Fábio. Sorry, I missed that part of your question. I have updated my response with the missing information.

Fábio Antunes November 13, 2015

Hi @Einar Pehrson , Thank you for the update. I have voted and hope it can be available in one of the next versions of AC. Regards

TAGS
AUG Leaders

Atlassian Community Events