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

Post function to print barcode of a custom field onto the network printer

Hello everyone,

 

I am building an inventory management system in JIRA. To automate a few processes and to avoid manual errors we use barcodes. Now, we need an option to generate a barcode based on a custom field value and send that barcode for a print on the network printer using a post function call with Scriptrunner. 

 

Please let me know how do I go about doing this.

 

 

1 answer

0 votes

Interesting use case!

You can definitely implement it based on this idea:

  1. Use the barcode feature of the Better PDF Exporter app. Basically, if you don't want anything else, but the barcode itself, create a PDF template that contains nothing else, but the barcode. The app allows encoding any information, including custom field values, in the barcodes! See this tutorial.
    1. Extra hint: you can customize your template from the default issue-fo.vm by dropping all fields and turning the QR code to the barcode you need. (See the screenshot at the bottom.)
  2. Then implement the post function in ScriptRunner which renders the PDF with the barcode. It is also simple, see this second tutorial.
  3. Now you have the PDF document in the Groovy script, triggered by the post function. You will send that to the print. I don't actually know how to do this, but I guess it would copying the bytes to some source that is consumed by the printer.

jira-single-issue-export-with-qr-code

@Aron Gombas _Midori_ thanks for such an elaborate suggestion. I would definitely try this and let you know how it goes.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

684 views 17 19
Read article

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