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

We want to open create JIRA issue form on click of a button

When we hover on the text in confluence page, it gives an option to create JIRA issue. We want to open the same JIRA issue create form on click of a button. We have scriptrunner for confluence. I have added an approve button on the confluence page. Requirement is once the user clicks on the approve button JIRA issue create form should popup.

 

Thanks!

2 answers

1 vote

For server, I would create a user macro to provide the approve button and link to the issue create screen - you can't put it in as part of a Confluence page, it would have to be a callout to Jira.

Or use a Jira "issue collector" in your space or global headers.

Or consider Confluence forms with SR - https://library.adaptavist.com/entity/create-jira-issue-from-forms-for-confluence-submission

Is there a way we can call JIRA macro using scriptrunner?

You don't need to call the Jira macro with Scriptrunner, you can use the Jira macro directly in the body of your page.

You can alter the Confluence UI with Scriptrunner though - see https://docs.adaptavist.com/sr4c/latest/features/script-fragments and those could be used to call scripts.

I use below snippet to insert the JIRA issues using automation for dynamic creation of confluence pages.

JIRA insert issue macro

<ac:structured-macro ac:name='jira' ac:schema-version='1'><ac:parameter ac:name='columns'>component,type,key,summary,created</ac:parameter><ac:parameter ac:name='maximumIssues'>20</ac:parameter><ac:parameter ac:name='jqlQuery'>'project=ABC'</ac:parameter></ac:structured-macro>

 

Is there any code for JIRA Create issue macro ?

0 votes
Fabian Lim Community Leader Dec 30, 2021

Adding @Nic Brough _Adaptavist_

I'm also interested on this one.  

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

38,477 views 28 126
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