Forums

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

getBehaviourContextId is null

LAMBEZ
May 25, 2023

I have created a feature that creates a linked issue to the current issue.

This works well when my issue is fully displayed.

But when my issue is partially displayed (list view for example) the getBehaviourContextId() function returns null and this leads to an error that blocks the page (need to refresh).

How can I get the behaviourContextId in this case?

or

How can I block the feature in this case?

 

Regards,

Franck

 

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Rafael Franco
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 1, 2017

Hi Roberto,

Can you please clarify a bit better what exactly you are trying to achieve? 

I would assume that you could just listen to a specific event in Confluence and then call a REST api in JIRA to do what is needed.

Let me know,

Rafael

Roberto L
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 1, 2017

Hi @Rafael Franco,

In Confluence there are pages that need approval.

I would like it such that when a Page is approved then a task in Jira is transitioned to Complete.

I am unsure how to do so. Would this be possible in any way?

Can you call a POST REST api in Confluence ScriptRunner?

-Roberto

Rafael Franco
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 1, 2017

Well, it depends when the page is approved if a regular confluence even it fired or not. What add-on are you using for page approvals?

Roberto L
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 29, 2017

Hi Rafael Franco

I am hoping you are still able to help me with this inquiry.

The add-on we are using for page approvals in Confluence is called "Comola".

Regarding the Confluence events being fired or not, could you explain how I can check in Confluence whether an event has been fired or not and how to handle them?

I am new to Confluence :/.

Thank you!

-Roberto

TAGS
AUG Leaders

Atlassian Community Events