Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Firm Book Library with QR Codes

miristar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 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
AUG Leaders

Atlassian Community Events