AdamPiotrowski91 / RVI_Ideas

Repository to store Enhancement Requests, Defects and Ideas for Rally Visual Improver PRO 3000
MIT License
1 stars 0 forks source link

[FE]: Live list of all @mentions of you #85

Closed AdamPiotrowski91 closed 1 week ago

AdamPiotrowski91 commented 3 months ago

Description: Some way to list a LIVE-updating @mentions of you in all Rally objects

Expected Behavior

N/A

Screenshots

N/A

Additional Context & Ad Hoc Info:

Requestor: PO

List of Items to Implement:

AdamPiotrowski91 commented 3 months ago

Helper Code:

RallyAPIQuery.callQueryByURL('https://rally1.rallydev.com/slm/webservice/v2.0/conversationpost', {
  query: RallyAPIQuery.getLLAsSTR(
    { val: 'CreationDate >= ' + new Date().add(-7).toHTMLDateValueFormat() }, 'AND'
  ),
  order: 'Rank',
  pagesize: 2000,
  start: 2001,
  fetch: true,
})
  .catch(console.warn)
  .then((arr) => arr.map(({ Text }) => Text))
  .then((arr) => arr.filter((txt) => /@Adam Piotrowski/.test(txt)))
  .then(console.log);
AdamPiotrowski91 commented 3 months ago

Soft-Depends on #77 (aka It can be implemented without it but may benefit from it)

AdamPiotrowski91 commented 3 months ago

API GET https://rally1.rallydev.com/slm/webservice/v2.0/user gives you data about yourself