Thanks for your answer. No it does not fit our needs: we want to attach files using the attachments feature PLUS having a specific upload feature for some type of files.
We want to have a special file to be transfered to external service. And make sure to differenciate this file as it is "special" for us. Not all files can be sent to the service.
The idea would be to have an <input type=file > field and intercept the stream to forward to our service, as well as saving a reference ID.
I'm new to Jira dev, but some boiler plates or guidelines would help a lot.
A new field add-on is the right approach, but it's not going to be a trivial "simple custom field"
You will need to put a field on screen for capturing the incoming file somehow, which should be straightforward, as you'll just need to capture what the user says and call for their upload.
You probably want to have a second field to store your "reference id" (reusing the first capture field is not going to be easy, as you'll see the "view" code for it is called in places you don't expect, and edits would be a pain)
You're going to have to build an upload system to catch the incoming file and send it over to the other service.
You could simplify this a bit and drop the idea of using a field for the input - do it as an action instead, so a user can click something and get a box to ask questions, poke the file over and capture any reference given back which can then be added to a read-only custom field.I'm not aware of anything that already does anything like this with source code you could "borrow", all I can really do is point you to https://developer.atlassian.com/jiradev and say "look for p2 plugin development"
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs