Updating a custom JIRA task field "Risk evaluation" with Forge application

So I recently started looking into Forge apps for Atlassian and I have a very simple use case. But due to so many different types and categories of templates I am unable to decide what way should I use to address this issue.

Purpose:

  • I have a custom field in my JIRA issue view (let’s call it “Risk Evaluation”).
  • When a user opens this task/ticket and clicks my app button/icon from panel (forge-demo)
  • Then this custom field called “Risk Evaluation” gets populated with some text (that text will be returned from my api)

I am unsure what type of template should I use because no matter what I try, I just get errors that aren’t even picked in forge tunnel. Chatgpt says the issue is in template/project structure I have.

Can anyone experienced please suggest me - what project template/type to use. And how do I update/populate a custom field when button from panel is pressed?

TLDR: I want to update the value of a custom field in my JIRA issues using Forge App

Thank you in advance

Hey @ZeeA,

Thanks for your question! In regards to the templates, they’re really just there as a shortcut to get you started with building an app - they provide one basic module that you can build on top of.

So in the case of your app it sounds like you want to create a Panel in your Jira Issue view with buttons that a user can press to populate a custom field. In that case I would choose the Jira Issue Panel template.

You can then modify the app to make a call to your API - if you’re calling a third party API (as in not an API for an atlassian product) then you might want to check out Building apps that integrate with APIs using Forge which is a great place to start learning how to customise your app to make an API call.

Finally, to update the custom field you will need to call the Jira Edit Issue API to update the custom field for the Jira Issue.

I hope this explains the basics. If one of the templates isn’t working before you’ve made any changes, please do let us know which one so that we can investigate what is causing the error and resolve it.

In relation to your specific example, it does look like we have a bit of a gap when it comes to UI Kit sample apps that use Custom Fields. We’re looking into creating more content, but in the meantime let us know if you have more questions by posting on the developer community.

PS. if this does answer your question, please mark it as the solution.

Cheers!
Mel