MCPcopy Create free account
hub / github.com/elastic/eui / getFieldValue

Function getFieldValue

scripts/sync-project-fields.js:335–345  ·  view source on GitHub ↗
(projectItem, fieldName)

Source from the content-addressed store, hash-verified

333
334// Get field value from project item
335function getFieldValue(projectItem, fieldName) {
336 if (!projectItem.fieldValues || !projectItem.fieldValues.nodes) {
337 return null;
338 }
339
340 const field = projectItem.fieldValues.nodes.find(
341 node => node.field && node.field.name === fieldName
342 );
343
344 return field ? (field.date || field.name) : null;
345}
346
347// Get current status from project item
348function getCurrentStatus(projectItem) {

Callers 2

getCurrentStatusFunction · 0.85
processItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…