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
Accepted answer

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
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

62 views 4 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you