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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Firm Book Library with QR Codes

Hi, I'm wondering if anyone has created a way to check out books in the asset management piece of Jira?  My concept is to put QR codes in the books and then have the users - who are already in the system as clients in the I.S. side of things - use their phones to scan the QR code and borrow the books... I'm brand new to Jira so was wondering if anyone was doing a similar project? 

Thanks.

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Radu Atlassian Team Aug 15, 2019

Hi @miristar ,

I haven't thought about it but it's a great idea. Love it.

Thinking about the current state of functionalities you'd have to have an intermediate server because creating a Jira ticket and adding an asset is a 2step process right now.

In my opinion a user would scan a qr code containing the asset identifier of the book. The application should know customer identification information and would call a Jira server creating an issue for borrowing the book. Then it would make a subsequent call adding the asset to the newly created ticket.

Instructions

Given an issue key or id and the asset details,

  1. Make a rest call to Jira to get the issue details:
    /rest/api/2/issues/<issueKey>?expand=schema
  2. Inspect the schema elements, find all fields where:
    custom.schema='com.atlassian.servicedesk.assets-plugin:assetfield'
    Note the custom field id's, eg customfield_10050
  3. Update the Jira issue object with the new field value (add it to the array): 
    fields[customfield_10050].add(
      {
        value:"asset.appKey/asset.originId",
        label:"asset.label"
      }
    )
  4. Use the Jira api to update the issue by using a PUT on the Edit issue resource.

More on APIs -> https://developer.atlassian.com/cloud/jira/platform/rest/v3/ .

Let me know if you decide to start working on this.

 

Cheers,

Radu

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

52 views 0 0
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you