Custom Parameter on webItem Url

Hi,

I don’t think this is possible but just want to make sure. On my plugin i have created new issue types and then added a webItem that goes to the Jira search issue page and searches for all issues of that type, check the code below:

{
	"name": {
		"value": "Search Mega Bug"
	},
	"url": "/issues/?jql=project={project.key} and issuetype='Mega Bug'",
	"context": "product",
	"key": "search-mega-bug",
	"location": "myPlugin/search-section",
	"weight": 1
}

The problem with this is that the Jira Admin is free from going to the issue type configuration and changing the issue type name, thus making my webItem no longer work.

I was wondering if it was possible for me to pass a variable somehow to the webItem? this would allow me to use the issueType Id instead of the name. Something like this:

{
	"name": {
		"value": "Search Mega Bug"
	},
	"url": "/issues/?jql=project={project.key} and issuetype='{addon.megaBugId}'",
	"context": "product",
	"key": "search-mega-bug",
	"location": "myPlugin/search-section",
	"weight": 1
}

Thank you,
André Rodrigues

I don’t think we support that, though you could implement that redirect yourself by implementing the right web item target.

1 Like

You are correct i have manage to do it by changing the context to addon and redirecting to the page i want to be displayed with the correct values.

Thank you

1 Like