Forums

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

How to create Web Item with WebFragmentBuilder ?

Amine Mekki
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2021

Hi all,
I’m trying to create a new web item with the WebFragmentBuilder but it doesn’t work.
here is my code :
new WebFragmentBuilder(“web-item-key”, 20).id(“web-item-id”).label(“web-item-label”).title(“web-item-title”).webItem(“section”).url(“url”).build();

Any suggestion ?

1 answer

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
May 1, 2021

Hi @Amine Mekki 

I do not fond anything wrong in your code. Are those values in the quotes correct?

For instance "section", this is the most tricky part, you should use the exact location which are described here: https://developer.atlassian.com/server/jira/platform/administration-ui-locations/

Suggest an answer

Log in or Sign up to answer