Browse issue and create it if it does not exist?

Sebastian Hutter June 17, 2015

I am creating a project for our asset management (very similar to the great example provided by atlassian - http://blogs.atlassian.com/2014/03/jira-asset-management-overview/).

I created a custom project with a custom workflow and entering more and more assets into the system but one thing I am missing is the ability to create a new issue / asset if it does not exist.

 

I have a label on each asset with a QR code with points to https://<jira>/browse/TAG-NNN.

If I am adding a new asset to the system and glued the label to the asset I would like to be able to quickly create the issue in JIRA by scanning the barcode and then just enter all the details in the newly created asset.

Right now, if the asset is not yet created I receive the error message "Issue does not exist" when accessing the URL. Is there a way to change the behaviour of the project so a new issue with the correct ID is created?

 

3 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 17, 2015

Yes, but no.  You could theoretically catch a non-existent issue and redirect it.  But JIRA creates issues sequentially, and that's not going to change.  It will never create TAG-NNN when it can't find it, it will create TAG-next-free-project-seqence.  So you'd have to change the asset tag on the item to match JIRA, not make JIRA create a record.

Sebastian Hutter June 17, 2015

Thanks for the quick reply. I thought so, makes sense from a Jira point of view ;-)

0 votes
Tristan February 1, 2018

Hi Sebastian, did you end up finding a solution for this? I am looking at doing the same thing, but have come up with the same problem as you.

I'd really appreciate any help you can provide.

Tristan

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 3, 2018

Create the issue first, then create the tag from that.

0 votes
calo June 30, 2015

You said:

I have a label on each asset with a QR code with points to https://<jira>/browse/TAG-NNN.

I just can't understand it. How did you set QR code?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 30, 2015

Use QR generating software

Suggest an answer

Log in or Sign up to answer