Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Please explain how to detect report type in iframe name json configuration

 

Hi Time Reports for JIRA Cloud Dev,

 

Im currently trying to improve our Jira cloud by build on top of our purchased plugins. In this case, I would need to understand few things about Time Reports for Jira Cloud.

First :

How could I understand using HTML / JSON what type of report is contained in an iFrame from dashboard ? I mean, Time Report gadgets on dashboard uses iFrame name to pass the configuration of the widget. At first sight, it is pretty obscure to understand values of arguments. 

Could you please explain where we can found the type of report. My guess is on that line :

 

{"constructor":{"args":["d7","d4","d5","d8"]}}

But what represent d7,d4,d5, etc....

 

Or may be on that param :

 

"request":{
		"args":["w","y"]
		}
	},

But it is not more understandable.

Could you then provide more info about retrieve the type of the widget ?

Thanks

1 answer

1 accepted

0 votes
Answer accepted

Hi Thomas,

I have no idea where is JSON you've provided form, and what does it mean, sorry.

As for Time Reports dashboard gadget, if you can use Developer Console in browser, and open Networks tab, then you can see request for gadget configuration e.g. 

https://jiratimesheet.atlassian.net/rest/api/2/dashboard/10200/items/11002/properties/gadgetConfig?_=1496170915375

{
  "key": "gadgetConfig",
  "value": {
    "pivotTableType": "Timesheet",
    "sumSubTasks": true,
    "includeEmpty": {},
    "collapseFieldGroups": {
        "enabled": false
     },
    "numOfWeeks": 1
  }
}

Hope it helps.

Thank you.

 

Thanks for replying.

I was looking into the iframe generated code of the computed gadget. I was thinking I could directly start from there.

Seems I need to retrieve first the dashboard parameters

<dashboard params="{huge:json}"></dashboard>

Then stores all gadget configuration, exactly as you said. And finally using stored gadget IDs I would be able to target specific iframe/html content.

Not so easy as I thought but far from impossible.

Thanks for replying.

I achieved my task successfully based on my last comment.

But Im not using params attribute but layouts attributes instead.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

755 views 7 24
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